From b251e27830551a61d9bfbad1f5b458c8f23d68ed Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 13 Jul 2022 19:03:11 +0200 Subject: [PATCH] show head in formspec for npc with only one texture as well --- fs_decorated.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs_decorated.lua b/fs_decorated.lua index 6a86144..16e6dc9 100644 --- a/fs_decorated.lua +++ b/fs_decorated.lua @@ -15,6 +15,9 @@ yl_speak_up.calculate_portrait = function(pname, n_id) return head .. "[combine:8x8:-8,-8=" .. tex[2] .. ":-40,-8=" .. tex[2] end + if(tex and tex[1]) then + return head .. "[combine:8x8:-8,-8=" .. tex[1] .. ":-40,-8=" .. tex[1] + end return head end