Small fix on mining drill

This commit is contained in:
Maciej Kasatkin 2012-09-11 18:51:03 +02:00
parent 582f94952a
commit 83c211700d
1 changed files with 0 additions and 1 deletions

View 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)