From 07733484e1d798b312d3d248e657de5b7698731a Mon Sep 17 00:00:00 2001 From: compiling <8335770+compiling@users.noreply.github.com> Date: Thu, 29 Apr 2021 22:41:39 +1000 Subject: [PATCH] Fix exception with split dungeons --- DungeonGenerator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DungeonGenerator.py b/DungeonGenerator.py index e320bbaf..2d4ed30d 100644 --- a/DungeonGenerator.py +++ b/DungeonGenerator.py @@ -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: #