1
0
Fork 0

Add survival tool capabilites to all items

hardcore_mode_test
Johannes Fritz 2023-01-24 11:38:58 -06:00
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