Checking if proto folder existing before deleting

This commit is contained in:
PhilOtes 2021-12-30 17:52:54 +01:00
parent f89eded601
commit 32c330b5ab

View file

@ -276,6 +276,7 @@ def compile():
# First folder starting with PrismarineJS # First folder starting with PrismarineJS
folder_name = next(folder for folder in os.listdir(mc_path) if folder.startswith("PrismarineJS")) folder_name = next(folder for folder in os.listdir(mc_path) if folder.startswith("PrismarineJS"))
if os.path.isdir(mc_path / 'proto'):
shutil.rmtree(mc_path / 'proto') shutil.rmtree(mc_path / 'proto')
PACKETS = { PACKETS = {