Fixing a bug with patterns on the banner, displaying textured folds

This commit is contained in:
Van 2023-08-04 22:37:31 +03:00
parent a7abf092a5
commit 4ff1d9fd22
2 changed files with 3 additions and 3 deletions

View File

@ -96,8 +96,8 @@ end
dofile(modpath.."/patterncraft.lua")
-- Overlay ratios (0-255)
local base_color_ratio = 224
local layer_ratio = 255
local base_color_ratio = 225
local layer_ratio = 225
local standing_banner_entity_offset = { x=0, y=-0.499, z=0 }
local hanging_banner_entity_offset = { x=0, y=-1.7, z=0 }
@ -181,7 +181,7 @@ function mcl_banners.make_banner_texture(base_color, layers)
local color = mcl_banners.colors[layerinfo.color][4]
-- Generate layer texture
local layer = "(("..pattern.."^[colorize:"..color..":"..layer_ratio..")^[mask:"..pattern..")"
local layer = "((mcl_banners_banner_base.png^[colorize:"..color..":"..layer_ratio..")^[mask:"..pattern..")"
finished_banner = finished_banner .. "^" .. layer
end

Binary file not shown.

Before

Width:  |  Height:  |  Size: 791 B

After

Width:  |  Height:  |  Size: 25 KiB