Checking if proto folder existing before deleting
This commit is contained in:
parent
f89eded601
commit
32c330b5ab
1 changed files with 2 additions and 1 deletions
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue