From 86bb776f7848f26435723f671ef7d238ace19f76 Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Tue, 11 Sep 2012 20:15:12 +0200 Subject: Added API for registering power tools --- mining_drill.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mining_drill.lua') 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) -- cgit v1.2.3