mirror of
				https://github.com/mt-mods/pipeworks.git
				synced 2025-11-04 08:55:30 +01:00 
			
		
		
		
	Merge branch 'nodebreaker_fix' into 'master'
Prevent the node breaker from digging all nodes See merge request VanessaE/pipeworks!19
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user