show head in formspec for npc with only one texture as well

This commit is contained in:
Sokomine 2022-07-13 19:03:11 +02:00
parent 6e35b01bd5
commit b251e27830

View File

@ -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