mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-29 12:47:30 +01:00
Fix mcl_meshhand race condition
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user