summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-05-26 20:56:09 +0000
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2020-05-26 20:56:09 +0000
commit8281e3d0687b665f6bca05ecbf6fc8a5a579edda (patch)
tree3cf60c084c7caa392ab18f0835238cbaef915fd7
parent5410ea74f28de489f7cea15dc5c6dadf16f4d2f3 (diff)
parented282b02989f19c776c807ea09a572f4844547ed (diff)
downloadpipeworks-8281e3d0687b665f6bca05ecbf6fc8a5a579edda.tar
pipeworks-8281e3d0687b665f6bca05ecbf6fc8a5a579edda.tar.gz
pipeworks-8281e3d0687b665f6bca05ecbf6fc8a5a579edda.tar.bz2
pipeworks-8281e3d0687b665f6bca05ecbf6fc8a5a579edda.tar.xz
pipeworks-8281e3d0687b665f6bca05ecbf6fc8a5a579edda.zip
Merge branch 'nodebreaker_fix' into 'master'
Prevent the node breaker from digging all nodes See merge request VanessaE/pipeworks!19
-rw-r--r--wielder.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/wielder.lua b/wielder.lua
index 13f4398..a0fb472 100644
--- a/wielder.lua
+++ b/wielder.lua
@@ -40,7 +40,7 @@ local can_tool_dig_node = function(nodename, toolcaps, toolname)
-- but a player holding one can - the game seems to fall back to the hand.
-- fall back to checking the hand's properties if the tool isn't the correct one.
local hand_caps = minetest.registered_items[""].tool_capabilities
- diggable = minetest.get_dig_params(nodegroups, hand_caps)
+ diggable = minetest.get_dig_params(nodegroups, hand_caps).diggable
end
return diggable
end