Bring back the other assert

This commit is contained in:
NewSoupVi
2024-09-25 16:08:25 +02:00
committed by GitHub
parent 434ed0b420
commit f45f16fa3f

View File

@@ -720,6 +720,7 @@ class CollectionState():
if new_region in reachable_regions:
blocked_connections.remove(connection)
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)
blocked_connections.remove(connection)
blocked_connections.update(new_region.exits)