items/mcl_banners: expand confusing conditional append

https://git.minetest.land/Mineclonia/Mineclonia/pulls/15/files#issuecomment-22785
This commit is contained in:
E 2021-05-06 06:14:52 -04:00
parent c29d725755
commit 98e634a0e4
1 changed files with 5 additions and 1 deletions

View File

@ -164,7 +164,11 @@ local make_banner_overlay = function(base_color, layers)
-- Generate layer texture
local layer = "((("..pattern.."^[mask:mcl_banners_front.png)^[colorize:"..color..":"..layer_ratio..")^[mask:"..pattern..")"
lovl = (lovl ~= "" and (lovl .. "^") or "") .. layer
if lovl ~= "" then
lovl=lovl.."^"..layer
else
lovl=layer
end
end
return "[combine:32x32:0,0=" .. escape(base) .. ":7,3=" .. escape("("..lovl.."^[resize:50x38)")