From ef8f4b6f77f0e80c51a53dfaee2faed51bc81e08 Mon Sep 17 00:00:00 2001 From: Pyogenics Date: Mon, 9 Mar 2026 17:56:18 +0000 Subject: [PATCH] Fix error where rmtree is called in an awkward setup --- scripts/copy_assets_to_client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/copy_assets_to_client.py b/scripts/copy_assets_to_client.py index 9670a2dcb..6e69231f4 100644 --- a/scripts/copy_assets_to_client.py +++ b/scripts/copy_assets_to_client.py @@ -23,11 +23,11 @@ src_assets = Path(project_source_root / "Minecraft.Assets") # clear out any old assets if dest_common.exists(): - shutil.rmtree(dest_common) - shutil.rmtree(client_build_dir / "music") - shutil.rmtree(client_build_dir / "Sound") + shutil.rmtree(dest_common, ignore_errors=True) + shutil.rmtree(client_build_dir / "music", ignore_errors=True) + shutil.rmtree(client_build_dir / "Sound", ignore_errors=True) # XXX: Check "copy DLC" bellow for info - # shutil.rmtree(client_build_dir / "DurangoMedia") + # shutil.rmtree(client_build_dir / "DurangoMedia", ignore_errors=True) # copy `Minecraft.Assets/Common` into the build directory for the client. shutil.copytree(