diff options
author | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-11 23:04:50 +0200 |
---|---|---|
committer | Maciej Kasatkin <mk@realbadangel.pl> | 2012-09-11 23:04:50 +0200 |
commit | a773aa054dba12d04a04f117c90eefad370f0709 (patch) | |
tree | 93a5c34d8e497d3253e055b3dd13ea7a735e8821 /mining_drill.lua | |
parent | 32bd35b124e9c23ca6bcfb0b27845b41358985a2 (diff) |
fix to minig drill
Diffstat (limited to 'mining_drill.lua')
-rw-r--r-- | mining_drill.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mining_drill.lua b/mining_drill.lua index 77df7e7..99a7878 100644 --- a/mining_drill.lua +++ b/mining_drill.lua @@ -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 |