From: Maciej Kasatkin Date: Tue, 11 Sep 2012 16:51:03 +0000 (+0200) Subject: Small fix on mining drill X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=83c211700dec302ad2666560c082f143d0bfde1a;p=zefram%2Fminetest%2Ftechnic.git Small fix on mining drill --- diff --git a/mining_drill.lua b/mining_drill.lua index 78c11a4..305ef59 100644 --- a/mining_drill.lua +++ b/mining_drill.lua @@ -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)