From df76c26fbb4995053c81c0006d25d56398f7521e Mon Sep 17 00:00:00 2001 From: Berserker Date: Sun, 8 Mar 2026 21:21:39 +0100 Subject: [PATCH] Core: add assertion preventing building with empty platforms list --- worlds/LauncherComponents.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worlds/LauncherComponents.py b/worlds/LauncherComponents.py index 19be413708..e0db60b941 100644 --- a/worlds/LauncherComponents.py +++ b/worlds/LauncherComponents.py @@ -289,6 +289,12 @@ if not is_frozen(): if not worldtype: logging.error(f"Requested APWorld \"{worldname}\" does not exist.") continue + + assert worldtype.platforms != [], ( + f"World {worldname} has an empty list for platforms. " + "Use None or omit the attribute for 'any platform'." + ) + file_name = os.path.split(os.path.dirname(worldtype.__file__))[1] world_directory = os.path.join("worlds", file_name) if os.path.isfile(os.path.join(world_directory, "archipelago.json")):