forked from MineClone5/MineClone5
#185 Substitute empty textures table if missing (quickfix)
This commit is contained in:
parent
b4bf135c27
commit
37d914881c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue