fix when player gets out server before full load

This commit is contained in:
Alexsandro Percy 2023-09-30 11:54:12 -03:00
parent e70246f1cb
commit c7503a94bf

View file

@ -26,6 +26,7 @@ local set_player_textures =
or default.player_set_textures
function airutils.set_player_skin(player, skin)
if not player then return end
local player_properties = player:get_properties()
local texture = player_properties.textures
local name = player:get_player_name()