#185 Substitute empty textures table if missing (quickfix)

This commit is contained in:
kay27 2022-02-09 17:52:15 +04:00
parent b4bf135c27
commit 37d914881c
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ function mcl_player.player_set_model(player, model_name)
end
local function set_texture(player, index, texture)
local textures = player_textures[player:get_player_name()]
local textures = player_textures[player:get_player_name()] or {}
textures[index] = texture
player:set_properties({textures = textures})
end