fixed bug if textures are missing

This commit is contained in:
Sokomine 2025-03-22 23:27:32 +01:00
parent fc6ee8b4d4
commit 0b000a3b94

View File

@ -44,7 +44,7 @@ yl_speak_up.input_fashion = function(player, formname, fields)
local skins = yl_speak_up.mob_skins[mob_type]
local textures = yl_speak_up.speak_to[pname].textures
local textures = yl_speak_up.speak_to[pname].textures or {}
-- fallback if something went wrong (i.e. unkown NPC)
local skin = (textures[texture_index] or "")