mirror of
https://github.com/unmojang/meta.git
synced 2025-09-22 10:43:29 -04:00
Merge pull request #43 from Trial97/colonel
Renamed old_snapshot to snapshot
This commit is contained in:
commit
134ed92844
@ -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",
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user