Initialize armor after all on_joinplayer callbacks have run

This commit is contained in:
stujones11 2017-04-16 16:52:12 +01:00
parent 99bc8cf2d3
commit 7566ecccee

View File

@ -138,9 +138,11 @@ end)
minetest.register_on_joinplayer(function(player)
default.player_set_model(player, "3d_armor_character.b3d")
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)