Merge pull request #43 from Trial97/colonel

Renamed old_snapshot to snapshot
This commit is contained in:
Sefa Eyeoglu 2024-04-29 22:30:08 +02:00 committed by GitHub
commit 134ed92844
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -53,7 +53,7 @@
{
"id": "1_16_combat-4",
"wiki": "https://minecraft.wiki/w/Java_Edition_Combat_Test_8",
"url": "https://cdn.discordapp.com/attachments/369990015096455168/947864881028272198/1_16_combat-4.zip"
"url": "https://archive.org/download/1-16-combat-4_202404/1_16_combat-4.zip"
},
{
"id": "1_16_combat-3",
@ -101,4 +101,4 @@
"url": "https://launcher.mojang.com/experiments/combat/610f5c9874ba8926d5ae1bcce647e5f0e6e7c889/1_14_combat-212796.zip"
}
]
}
}

View File

@ -41,6 +41,7 @@ def fetch_zipped_version(path, url):
break
assert version_json
version_json["type"] = version_json["type"].removeprefix("old_")
with open(path, "w", encoding="utf-8") as f:
json.dump(version_json, f, sort_keys=True, indent=4)
@ -61,7 +62,7 @@ def fetch_modified_version(path, version):
}
version_json["downloads"] = downloads
version_json["type"] = "old_snapshot"
version_json["type"] = version_json["type"].removeprefix("old_")
with open(path, "w", encoding="utf-8") as f:
json.dump(version_json, f, sort_keys=True, indent=4)
@ -74,6 +75,7 @@ def fetch_version(path, url):
r.raise_for_status()
version_json = r.json()
version_json["type"] = version_json["type"].removeprefix("old_")
with open(path, "w", encoding="utf-8") as f:
json.dump(version_json, f, sort_keys=True, indent=4)