1
0
Fork 0

Fix verbose tool info on non-tools

This commit is contained in:
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2023-03-10 13:24:32 -06:00 committed by Gitea
parent 3063cc97f7
commit 75dffe5059
2 changed files with 6 additions and 6 deletions

View File

@ -362,12 +362,6 @@ local function overwrite()
minetest.override_item(tname, { minetest.override_item(tname, {
tool_capabilities = toolcaps 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 end
end end

View File

@ -90,3 +90,9 @@ if mcl_skins_enabled then
else else
minetest.register_on_joinplayer(mcl_meshhand.update_player) minetest.register_on_joinplayer(mcl_meshhand.update_player)
end end
-- This is needed to deal damage when punching mobs
-- with random items in hand in survival mode
minetest.override_item("", {
tool_capabilities = mcl_meshhand.survival_hand_tool_caps
})