aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/download.py
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-12-09 11:23:45 -0600
committerGitHub <noreply@github.com>2025-12-09 11:23:45 -0600
commit84cd261118c9d1e3145d4d1751c0d22098cd8cd8 (patch)
treef9beeb5697a4b895423ef24989044fca8afc5594 /codegen/lib/download.py
parent676707aab320339b4c7406ee4f494b530f44e926 (diff)
downloadazalea-drasl-84cd261118c9d1e3145d4d1751c0d22098cd8cd8.tar.xz
1.21.11 (#273)
* run codegen for 25w44a * 25w44a * 25w46a * rename ResourceLocation to Identifier per mojmap changes * update changelog * 1.21.11-pre1 * 1.21.11-pre2 * 1.21.11-pre3 * add AttackRange fields from pre4 * 1.21.11-rc3 * 1.21.11
Diffstat (limited to 'codegen/lib/download.py')
-rw-r--r--codegen/lib/download.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/codegen/lib/download.py b/codegen/lib/download.py
index de6e2f2d..fa963188 100644
--- a/codegen/lib/download.py
+++ b/codegen/lib/download.py
@@ -137,7 +137,10 @@ def get_latest_fabric_api_version():
maven_metadata_xml = json.load(f)
tree = ET.ElementTree(ET.fromstring(maven_metadata_xml))
- return tree.find(".//latest").text
+ name = tree.find(".//latest").text
+ if name.endswith('_unobfuscated'):
+ name = name[:-len('_unobfuscated')]
+ return name
def get_latest_fabric_kotlin_version():