1
0
Fork 0

Merge pull request 'Fix meshhand with mcl_skins disabled' (#3864) from skins into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3864
Reviewed-by: FossFanatic <fossfanatic@noreply.git.minetest.land>
Optimize_backgrounds_jpg
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2023-08-16 13:12:52 +00:00
commit d3fb221641
1 changed files with 4 additions and 4 deletions

View File

@ -85,16 +85,16 @@ function mcl_meshhand.update_player(player)
end end
end end
minetest.register_on_joinplayer(function(player)
player:get_inventory():set_size("hand", 1)
end)
if mcl_skins_enabled then if mcl_skins_enabled then
mcl_player.register_on_visual_change(mcl_meshhand.update_player) mcl_player.register_on_visual_change(mcl_meshhand.update_player)
else else
minetest.register_on_joinplayer(mcl_meshhand.update_player) minetest.register_on_joinplayer(mcl_meshhand.update_player)
end end
minetest.register_on_joinplayer(function(player)
player:get_inventory():set_size("hand", 1)
end)
-- This is needed to deal damage when punching mobs -- This is needed to deal damage when punching mobs
-- with random items in hand in survival mode -- with random items in hand in survival mode
minetest.override_item("", { minetest.override_item("", {