diff --git a/Better-Leaves-9.2.zip b/Better-Leaves-9.2.zip index a53d752..22edd3c 100644 Binary files a/Better-Leaves-9.2.zip and b/Better-Leaves-9.2.zip differ diff --git a/gen_pack.py b/gen_pack.py index 69e6c12..33ed55f 100644 --- a/gen_pack.py +++ b/gen_pack.py @@ -278,7 +278,9 @@ def generateTexture(root, infile, useProgrammerArt=False): out.paste(texture, (int(width / 2 + width * x), int(height / 2 + height * y))) # As the last step, we apply our custom mask to round the edges and smoothen things out - mask = Image.open('input/mask.png').convert('L').resize(out.size, resample=Image.NEAREST) + mask_location = f"input/mask_{width}px.png" + if not os.path.isfile(mask_location): mask_location = "input/mask_16px.png" + mask = Image.open(mask_location).convert('L').resize(out.size, resample=Image.NEAREST) out = Image.composite(out, transparent, mask) # Finally, we save the texture to the assets folder diff --git a/input/mask.png b/input/mask_16px.png similarity index 100% rename from input/mask.png rename to input/mask_16px.png diff --git a/input/mask_32px.png b/input/mask_32px.png new file mode 100644 index 0000000..278d592 Binary files /dev/null and b/input/mask_32px.png differ diff --git a/input/mask_64px.png b/input/mask_64px.png new file mode 100644 index 0000000..5302311 Binary files /dev/null and b/input/mask_64px.png differ