From bce867aff0febaf65138b2c9a20bf7166cfbfa4b Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Sun, 14 Sep 2025 22:29:12 +0200 Subject: [PATCH] Increase compression level --- gen_pack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen_pack.py b/gen_pack.py index 7782655..f82d5fc 100644 --- a/gen_pack.py +++ b/gen_pack.py @@ -168,7 +168,7 @@ def zipdir(path, ziph): os.path.join(path, '..'))) def makeZip(filename): - with zipfile.ZipFile(filename, 'w', zipfile.ZIP_DEFLATED) as zipf: + with zipfile.ZipFile(filename, 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as zipf: zipdir('assets/', zipf) zipf.write('pack.mcmeta') zipf.write('pack.png')