Fix mcl_meshhand race condition

This commit is contained in:
Wuzzy 2019-03-06 06:25:03 +01:00
parent c4558a31ab
commit 98b3003e07
1 changed files with 0 additions and 5 deletions

View File

@ -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)