Fix exception with split dungeons
This commit is contained in:
@@ -1430,7 +1430,8 @@ def calc_allowance_and_dead_ends(builder, connections_tuple, world, player):
|
||||
check_list = list(potentials[enabling_region])
|
||||
if enabling_region.name in ['Desert Ledge', 'Desert Palace Entrance (North) Spot']:
|
||||
alternate = 'Desert Palace Entrance (North) Spot' if enabling_region.name == 'Desert Ledge' else 'Desert Ledge'
|
||||
check_list.extend(potentials[world.get_region(alternate, player)])
|
||||
if world.get_region(alternate, player) in potentials:
|
||||
check_list.extend(potentials[world.get_region(alternate, player)])
|
||||
connecting_entrances = [x for x in check_list if x != entrance and x not in dead_entrances and x not in drop_entrances_allowance]
|
||||
connect_able = len(connecting_entrances) > 0
|
||||
if is_destination and sector.branches() == 0: #
|
||||
|
||||
Reference in New Issue
Block a user