diff --git a/compiler/proto.py b/compiler/proto.py index 23b3711..ab18d10 100644 --- a/compiler/proto.py +++ b/compiler/proto.py @@ -276,7 +276,8 @@ def compile(): # First folder starting with PrismarineJS folder_name = next(folder for folder in os.listdir(mc_path) if folder.startswith("PrismarineJS")) - shutil.rmtree(mc_path / 'proto') + if os.path.isdir(mc_path / 'proto'): + shutil.rmtree(mc_path / 'proto') PACKETS = { "handshaking": {