Small fix on mining drill
authorMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 16:51:03 +0000 (18:51 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 16:51:03 +0000 (18:51 +0200)
mining_drill.lua

index 78c11a4d3731e1b3bd8a45452a420dce7d9794eb..305ef590b8a1d24dcc37757837128e6418ffdc3c 100644 (file)
@@ -9,7 +9,6 @@ minetest.register_tool("technic:mining_drill", {
                item=itemstack:to_table()
                local charge=tonumber((item["wear"])) 
                if charge ==0 then charge =65535 end
-               if charge ==65535 then charge =1 end
                charge=get_RE_item_load(charge,laser_mk1_max_charge)
                if charge-400>0 then
                 drill_dig_it(minetest.get_pointed_thing_position(pointed_thing, above),user)