mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
Fix meshhand with mcl_skins disabled
This commit is contained in:
parent
6cdd679baf
commit
6756358307
1 changed files with 4 additions and 4 deletions
|
@ -85,16 +85,16 @@ function mcl_meshhand.update_player(player)
|
|||
end
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():set_size("hand", 1)
|
||||
end)
|
||||
|
||||
if mcl_skins_enabled then
|
||||
mcl_player.register_on_visual_change(mcl_meshhand.update_player)
|
||||
else
|
||||
minetest.register_on_joinplayer(mcl_meshhand.update_player)
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:get_inventory():set_size("hand", 1)
|
||||
end)
|
||||
|
||||
-- This is needed to deal damage when punching mobs
|
||||
-- with random items in hand in survival mode
|
||||
minetest.override_item("", {
|
||||
|
|
Loading…
Reference in a new issue