forked from mtcontrib/3d_armor
Initialize armor after all on_joinplayer callbacks have run
This commit is contained in:
parent
99bc8cf2d3
commit
7566ecccee
|
@ -138,9 +138,11 @@ end)
|
|||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
default.player_set_model(player, "3d_armor_character.b3d")
|
||||
if armor:init_player_armor(player) == false then
|
||||
pending_players[player] = 0
|
||||
end
|
||||
minetest.after(0, function(player)
|
||||
if armor:init_player_armor(player) == false then
|
||||
pending_players[player] = 0
|
||||
end
|
||||
end, player)
|
||||
end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
|
|
Loading…
Reference in New Issue
Block a user