Minor district error

This commit is contained in:
codemann8
2024-12-14 16:20:42 -06:00
parent 7e952c0b9e
commit 22c9359459

View File

@@ -111,7 +111,7 @@ def resolve_districts(world):
visited = set() visited = set()
while len(queue) > 0: while len(queue) > 0:
region = queue.pop() region = queue.pop()
if not region: if region is None:
RuntimeError(f'No region connected to entrance: {ent.name} Likely a missing entry in OWExitTypes') RuntimeError(f'No region connected to entrance: {ent.name} Likely a missing entry in OWExitTypes')
visited.add(region) visited.add(region)
if region.type == RegionType.Cave: if region.type == RegionType.Cave: