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,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": {