mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 15:33:44 +01:00
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)
|
minetest.register_on_joinplayer(function(player)
|
||||||
default.player_set_model(player, "3d_armor_character.b3d")
|
default.player_set_model(player, "3d_armor_character.b3d")
|
||||||
|
minetest.after(0, function(player)
|
||||||
if armor:init_player_armor(player) == false then
|
if armor:init_player_armor(player) == false then
|
||||||
pending_players[player] = 0
|
pending_players[player] = 0
|
||||||
end
|
end
|
||||||
|
end, player)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
minetest.register_on_leaveplayer(function(player)
|
minetest.register_on_leaveplayer(function(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user