summaryrefslogtreecommitdiff
path: root/node_breaker.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-05-18 16:41:37 +0200
committerNovatux <nathanael.courant@laposte.net>2014-05-18 16:41:37 +0200
commit8efcd39e39c6ddafc36423f4627ddbb38b5988b7 (patch)
treeca7c72b6791e1954aa7eef7ec6c5030a295de1bc /node_breaker.lua
parent3f72bbf3d0788fbe4f0af7348a9e41f575fe81e3 (diff)
Bugfix
Diffstat (limited to 'node_breaker.lua')
-rw-r--r--node_breaker.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/node_breaker.lua b/node_breaker.lua
index f0e6776..d43a541 100644
--- a/node_breaker.lua
+++ b/node_breaker.lua
@@ -221,6 +221,9 @@ minetest.register_node("pipeworks:nodebreaker_off", {
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
return inv:room_for_item("pick", stack)
+ end,
+ can_remove = function(pos, node, stack, dir)
+ return stack:get_count()
end},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
@@ -316,6 +319,9 @@ minetest.register_node("pipeworks:nodebreaker_on", {
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
return inv:room_for_item("pick", stack)
+ end,
+ can_remove = function(pos, node, stack, dir)
+ return stack:get_count()
end},
on_construct = function(pos)
local meta = minetest.get_meta(pos)