projects
/
zefram
/
minetest
/
technic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
582f949
)
Small fix on mining drill
author
Maciej Kasatkin
<mk@realbadangel.pl>
Tue, 11 Sep 2012 16:51:03 +0000
(18:51 +0200)
committer
Maciej Kasatkin
<mk@realbadangel.pl>
Tue, 11 Sep 2012 16:51:03 +0000
(18:51 +0200)
mining_drill.lua
patch
|
blob
|
history
diff --git
a/mining_drill.lua
b/mining_drill.lua
index 78c11a4d3731e1b3bd8a45452a420dce7d9794eb..305ef590b8a1d24dcc37757837128e6418ffdc3c 100644
(file)
--- a/
mining_drill.lua
+++ b/
mining_drill.lua
@@
-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)