aboutsummaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-10-21 21:44:39 -0500
committermat <github@matdoes.dev>2022-10-21 21:44:39 -0500
commitb95e69be8f4fcf3c1069739cf29f66cfe2a74d6b (patch)
treeab05da83c814b6b3296a4e109c33007d412b7ebd /codegen
parentaa1f2a55e047f528dcb78509b025548696e42543 (diff)
downloadazalea-drasl-b95e69be8f4fcf3c1069739cf29f66cfe2a74d6b.tar.xz
add function that gets full message content
Diffstat (limited to 'codegen')
-rw-r--r--codegen/lib/extract.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py
index 5d49ac62..e66b9400 100644
--- a/codegen/lib/extract.py
+++ b/codegen/lib/extract.py
@@ -123,13 +123,17 @@ def get_generator_mod_data(version_id: str, category: str):
with open(get_dir_location(f'{generator_mod_dir}/src/main/resources/fabric.mod.json'), 'w') as f:
json.dump(fabric_mod_json, f, indent=2)
- try: os.system(f'cd {generator_mod_dir} && chmod u+x ./gradlew')
- except: pass
+ try:
+ os.system(f'cd {generator_mod_dir} && chmod u+x ./gradlew')
+ except:
+ pass
# set the server port to something other than 25565 so it doesn't
# conflict with anything else that's running
- try: os.makedirs(get_dir_location(f'{generator_mod_dir}/run'))
- except: pass
+ try:
+ os.makedirs(get_dir_location(f'{generator_mod_dir}/run'))
+ except:
+ pass
with open(get_dir_location(f'{generator_mod_dir}/run/server.properties'), 'w') as f:
f.write('server-port=56553')