From 12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 Mon Sep 17 00:00:00 2001
From: mat <27899617+mat-1@users.noreply.github.com>
Date: Tue, 14 Mar 2023 16:33:03 -0500
Subject: 1.19.4 (#57)
* 23w03a
* 23w04a
* 23w05a
* 23w06a
* fix
* 23w07a
mojang broke their json data generator so some stuff is missing
* didn't mean to commit that file here
* 1.19.4-pre2
* fix
* 1.19.4-pre3
* fix
* how did these packets get here
* 1.19.4-pre4
* 1.19.4-rc1
* 1.19.4-rc2
* 1.19.4-rc3
* merge main
* remove debugging code
* 1.19.4
---
codegen/lib/extract.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'codegen/lib/extract.py')
diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py
index 6bf2d57f..f7c78d29 100755
--- a/codegen/lib/extract.py
+++ b/codegen/lib/extract.py
@@ -117,7 +117,7 @@ def get_pixlyzer_data(version_id: str, category: str):
# TODO: right now this False is hard-coded, it should retry with this
# enabled if # initially getting the data fails
- if False or (os.path.exists(target_dir) and not os.path.exists(f'{target_dir}/{category}.min.json')):
+ if True or (os.path.exists(target_dir) and not os.path.exists(f'{target_dir}/{category}.min.json')):
print('Downloading', category, 'from pixlyzer-data.')
data = requests.get(f'https://gitlab.com/Bixilon/pixlyzer-data/-/raw/master/version/{version_id}/{category}.min.json?inline=false').text
try:
@@ -219,6 +219,8 @@ def get_pixlyzer_data(version_id: str, category: str):
pom_xml = open(f'{pixlyzer_dir}/pom.xml', 'r').read()
pom_xml = re.sub(
'.*?', f'{pom_xml_dependencies}', pom_xml, flags=re.DOTALL)
+ pom_xml = re.sub(
+ '.*?', f'{version_id}', pom_xml, flags=re.DOTALL)
open(f'{pixlyzer_dir}/pom.xml', 'w').write(pom_xml)
# compile
--
cgit v1.2.3