Core: disable worlds_disabled (#5014)

This commit is contained in:
Fabian Dill
2025-05-21 00:52:00 +02:00
committed by GitHub
parent 9adbd4031f
commit feef0f484d
14 changed files with 3 additions and 713 deletions

View File

@@ -373,10 +373,6 @@ class BuildExeCommand(cx_Freeze.command.build_exe.build_exe):
assert not non_apworlds - set(AutoWorldRegister.world_types), \
f"Unknown world {non_apworlds - set(AutoWorldRegister.world_types)} designated for .apworld"
folders_to_remove: list[str] = []
disabled_worlds_folder = "worlds_disabled"
for entry in os.listdir(disabled_worlds_folder):
if os.path.isdir(os.path.join(disabled_worlds_folder, entry)):
folders_to_remove.append(entry)
generate_yaml_templates(self.buildfolder / "Players" / "Templates", False)
for worldname, worldtype in AutoWorldRegister.world_types.items():
if worldname not in non_apworlds: