forked from VoxeLibre/VoxeLibre
Fix mcl_meshhand race condition
This commit is contained in:
parent
29449eb8d4
commit
520df43679
|
@ -17,11 +17,6 @@ if has_mcl_skins == true then
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
--change the player's hand to their skin
|
--change the player's hand to their skin
|
||||||
minetest.register_on_joinplayer(function(player)
|
|
||||||
local skin = mcl_skins.skins[player:get_player_name()]
|
|
||||||
player:get_inventory():set_stack("hand", 1, "mcl_meshhand:"..skin)
|
|
||||||
end)
|
|
||||||
|
|
||||||
mcl_skins.register_on_set_skin(function(player, skin)
|
mcl_skins.register_on_set_skin(function(player, skin)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
player:get_inventory():set_stack("hand", 1, "mcl_meshhand:"..skin)
|
player:get_inventory():set_stack("hand", 1, "mcl_meshhand:"..skin)
|
||||||
|
|
Loading…
Reference in New Issue