We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d19fd6 commit 271b2beCopy full SHA for 271b2be
mods/player_api/api.lua
@@ -58,8 +58,10 @@ end
58
59
function player_api.set_textures(player, textures)
60
local name = player:get_player_name()
61
- player_textures[name] = textures
62
- player:set_properties({textures = textures,})
+ local model = models[player_model[name]]
+ local model_textures = model and model.textures or nil
63
+ player_textures[name] = textures or model_textures
64
+ player:set_properties({textures = textures or model_textures,})
65
end
66
67
function player_api.set_animation(player, anim_name, speed)
0 commit comments