diff --git a/pilot_skin_manager.lua b/pilot_skin_manager.lua index 62174cd..1e3cbf3 100644 --- a/pilot_skin_manager.lua +++ b/pilot_skin_manager.lua @@ -27,7 +27,10 @@ local set_player_textures = function airutils.set_player_skin(player, skin) if not player then return end + local player_properties = player:get_properties() + if not player_properties then return end + local texture = player_properties.textures local name = player:get_player_name() if texture then