From 37d914881c9db90cea9b5676dae8c50f9752dcc7 Mon Sep 17 00:00:00 2001 From: kay27 Date: Wed, 9 Feb 2022 17:52:15 +0400 Subject: [PATCH] #185 Substitute empty textures table if missing (quickfix) --- mods/PLAYER/mcl_player/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/PLAYER/mcl_player/init.lua b/mods/PLAYER/mcl_player/init.lua index 2c6592ac8..69f126dcf 100644 --- a/mods/PLAYER/mcl_player/init.lua +++ b/mods/PLAYER/mcl_player/init.lua @@ -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