Now it finally works

This commit is contained in:
Casey 2024-05-22 13:04:44 +03:00
parent d285533965
commit 31cf003692
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 4 additions and 4 deletions

View File

@ -189,13 +189,13 @@ async def main():
for color in GLASS_COLORS:
out_path = GLASS_OUTPUT_PATH / color
out_path.mkdir(exist_ok=True)
with (out_path / "glass.properties").open("w") as fp:
texture_name = f"{color}_greenhouse_glass"
texture_name = f"{color}_greenhouse_glass"
with (out_path / f"{texture_name}.properties").open("w") as fp:
fp.write("method=ctm\n")
fp.write(f"matchBlocks=seasonextras:{texture_name}\n")
fp.write(f"matchBlocks=seasonsextras:{texture_name}\n")
fp.write(f"tiles=0-46\n")
fp.write(f"connect=block\n")
fp.write(f"resourceCondition=textures/block/{texture_name}.png\n")
fp.write(f"resourceCondition=seasonextras:textures/block/{texture_name}.png\n")
with Image.open(GLASS_CACHE_SEAMLESS / f"{color}.png") as glass:
for i in range(47):
ctm = Image.composite(border_texture, glass, ctm_list[i])