More Inverted Prepwork

This commit is contained in:
codemann8
2021-05-24 04:54:32 -05:00
parent a76d7f7cfd
commit 63eabfa2a1
3 changed files with 14 additions and 194 deletions

View File

@@ -860,6 +860,8 @@ def enable_new_entrances(region, connections, potentials, enabled, world, player
while len(queue) > 0:
ext = queue.popleft()
visited.add(ext)
if ext.connected_region is None:
continue
region_name = ext.connected_region.name
if region_name in connections.keys() and connections[region_name] in potentials.keys():
for potential in potentials.pop(connections[region_name]):