forked from VoxeLibre/VoxeLibre
Merge pull request 'Fix verbose tool info on non-tools' (#3530) from tool_info into master
Reviewed-on: MineClone2/MineClone2#3530 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
fa0a595009
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue