diff --git a/Better-Leaves-9.0.zip b/Better-Leaves-9.0.zip index 741497b..c9371a3 100644 Binary files a/Better-Leaves-9.0.zip and b/Better-Leaves-9.0.zip differ diff --git a/gen_pack.py b/gen_pack.py index 2199e5a..443eac1 100644 --- a/gen_pack.py +++ b/gen_pack.py @@ -361,7 +361,7 @@ def writeMetadata(args): if isinstance(edition, list): edition = " ".join(args.edition) with open("./input/pack.mcmeta") as infile, open("pack.mcmeta", "w") as outfile: for line in infile: - line = line.replace("${version}", args.version).replace("${edition}", edition) + line = line.replace("${version}", args.version).replace("${edition}", edition).replace("${year}", str(time.localtime().tm_year)) outfile.write(line) # See https://stackoverflow.com/a/1855118 diff --git a/input/pack.mcmeta b/input/pack.mcmeta index aadc0ba..d3b4674 100644 --- a/input/pack.mcmeta +++ b/input/pack.mcmeta @@ -2,6 +2,6 @@ "pack": { "pack_format": 15, "supported_formats": [15, 99], - "description": "§2Version ${version} §a${edition}\n§e©Motschen 2024 | MIT Licence" + "description": "§2Version ${version} §a${edition}\n§e©Motschen ${year} | MIT Licence" } } \ No newline at end of file