Plando Items: Better Warning for Nonexisting Worlds

This commit is contained in:
Exempt-Medic
2025-06-14 07:20:40 -04:00
committed by GitHub
parent 27a6770569
commit 61ce9d2cc1

View File

@@ -890,7 +890,7 @@ def parse_planned_blocks(multiworld: MultiWorld) -> dict[int, list[PlandoItemBlo
worlds = set()
for listed_world in target_world:
if listed_world not in world_name_lookup:
failed(f"Cannot place item to {target_world}'s world as that world does not exist.",
failed(f"Cannot place item to {listed_world}'s world as that world does not exist.",
block.force)
continue
worlds.add(world_name_lookup[listed_world])