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.
Bu işleme şunda yer alıyor:
upsilon 2020-05-26 22:29:16 +02:00
ebeveyn 5410ea74f2
işleme ed282b0298
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: A80DAE1F266E1C3C
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme

Dosyayı Görüntüle

@ -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