From b95e69be8f4fcf3c1069739cf29f66cfe2a74d6b Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 21 Oct 2022 21:44:39 -0500 Subject: add function that gets full message content --- codegen/lib/extract.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'codegen') 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') -- cgit v1.2.3