fix to minig drill
authorMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 21:04:50 +0000 (23:04 +0200)
committerMaciej Kasatkin <mk@realbadangel.pl>
Tue, 11 Sep 2012 21:04:50 +0000 (23:04 +0200)
mining_drill.lua

index 77df7e79f02fbdb9f44291885655f3bf53676ff3..99a7878e8caec39cbaa9b367c323b9dcbeffb471 100644 (file)
@@ -9,11 +9,11 @@ minetest.register_tool("technic:mining_drill", {
                item=itemstack:to_table()
                local charge=tonumber((item["wear"])) 
                if charge ==0 then charge =65535 end
-               charge=get_RE_item_load(charge,laser_mk1_max_charge)
+               charge=get_RE_item_load(charge,mining_drill_max_charge)
                if charge-200>0 then
                 drill_dig_it(minetest.get_pointed_thing_position(pointed_thing, above),user)
                 charge =charge-200;    
-               charge=set_RE_item_load(charge,laser_mk1_max_charge)
+               charge=set_RE_item_load(charge,mining_drill_max_charge)
                item["wear"]=tostring(charge)
                itemstack:replace(item)
                end