Fix mcl_meshhand race condition

This commit is contained in:
Wuzzy 2019-03-06 06:25:03 +01:00
parent c4558a31ab
commit 98b3003e07

@ -17,11 +17,6 @@ if has_mcl_skins == true then
})
end
--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)
local name = player:get_player_name()
player:get_inventory():set_stack("hand", 1, "mcl_meshhand:"..skin)