fixed bug if textures are missing
This commit is contained in:
parent
fc6ee8b4d4
commit
0b000a3b94
@ -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 "")
|
||||
|
Loading…
Reference in New Issue
Block a user