0
0
Fork 0

Add survival tool capabilites to all items

This commit is contained in:
parent 66ff8ab8a9
commit da7320b14c
1 changed files with 6 additions and 0 deletions

View File

@ -362,6 +362,12 @@ local function overwrite()
minetest.override_item(tname, {
tool_capabilities = toolcaps
})
else
-- This is needed to deal damage when punching mobs
-- with random items in hand in survival mode
minetest.override_item(tname, {
tool_capabilities = mcl_meshhand.survival_hand_tool_caps
})
end
end
end