mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-08 12:58:14 -07:00
Bring back the other assert
This commit is contained in:
@@ -720,6 +720,7 @@ class CollectionState():
|
|||||||
if new_region in reachable_regions:
|
if new_region in reachable_regions:
|
||||||
blocked_connections.remove(connection)
|
blocked_connections.remove(connection)
|
||||||
elif connection.can_reach(self):
|
elif connection.can_reach(self):
|
||||||
|
assert new_region, f"tried to search through an Entrance \"{connection}\" with no connected region."
|
||||||
reachable_regions.add(new_region)
|
reachable_regions.add(new_region)
|
||||||
blocked_connections.remove(connection)
|
blocked_connections.remove(connection)
|
||||||
blocked_connections.update(new_region.exits)
|
blocked_connections.update(new_region.exits)
|
||||||
|
|||||||
Reference in New Issue
Block a user