From ed282b02989f19c776c807ea09a572f4844547ed Mon Sep 17 00:00:00 2001 From: upsilon Date: Tue, 26 May 2020 22:29:16 +0200 Subject: Prevent node breaker from digging all nodes A small mistake in the code allowed the node breaker to dig any node using any tool, including hand. --- wielder.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3