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/download.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'codegen/lib/download.py') diff --git a/codegen/lib/download.py b/codegen/lib/download.py index aec3a648..1b22fbcc 100755 --- a/codegen/lib/download.py +++ b/codegen/lib/download.py @@ -177,7 +177,11 @@ def clear_version_cache(): if os.path.exists(get_dir_location(f'downloads/{file}')): os.remove(get_dir_location(f'downloads/{file}')) - os.system( - f'cd {get_dir_location("downloads/Burger")} && git pull') - os.system( - f'cd {get_dir_location("downloads/pixlyzer")} && git pull') + burger_path = get_dir_location("downloads/Burger") + if os.path.exists(burger_path): + os.system( + f'cd {burger_path} && git pull') + pixlyzer_path = get_dir_location('downloads/pixlyzer') + if os.path.exists(pixlyzer_path): + os.system( + f'cd {pixlyzer_path} && git pull') \ No newline at end of file -- cgit v1.2.3