summaryrefslogtreecommitdiff
path: root/mining_drill.lua
diff options
context:
space:
mode:
authorMaciej Kasatkin <mk@realbadangel.pl>2012-09-11 20:15:12 +0200
committerMaciej Kasatkin <mk@realbadangel.pl>2012-09-11 20:15:12 +0200
commit86bb776f7848f26435723f671ef7d238ace19f76 (patch)
tree20c8323745ee0b420103ae0aa268fa0780b9b003 /mining_drill.lua
parent7c04fb4b75172bbfa23a1cf4c8cb5d9db0adea24 (diff)
Added API for registering power tools
Diffstat (limited to 'mining_drill.lua')
-rw-r--r--mining_drill.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/mining_drill.lua b/mining_drill.lua
index 305ef59..77df7e7 100644
--- a/mining_drill.lua
+++ b/mining_drill.lua
@@ -10,9 +10,9 @@ minetest.register_tool("technic:mining_drill", {
local charge=tonumber((item["wear"]))
if charge ==0 then charge =65535 end
charge=get_RE_item_load(charge,laser_mk1_max_charge)
- if charge-400>0 then
+ if charge-200>0 then
drill_dig_it(minetest.get_pointed_thing_position(pointed_thing, above),user)
- charge =charge-400;
+ charge =charge-200;
charge=set_RE_item_load(charge,laser_mk1_max_charge)
item["wear"]=tostring(charge)
itemstack:replace(item)