Whitespace fixes

This commit is contained in:
Kevin Cathcart
2017-11-04 14:23:57 -04:00
parent cdf04b8a45
commit 5b3d4449c1
10 changed files with 85 additions and 83 deletions

View File

@@ -668,7 +668,7 @@ def connect_entrance(world, entrancename, exitname):
# if this was already connected somewhere, remove the backreference
if entrance.connected_region is not None:
entrance.connected_region.entrances.remove(entrance)
target = exit_ids[exit.name][0] if exit is not None else exit_ids.get(region.name, None)
addresses = door_addresses[entrance.name][0][0] if exit is not None else door_addresses[entrance.name][0]
try:
@@ -676,7 +676,7 @@ def connect_entrance(world, entrancename, exitname):
vanilla = exit_ids[vanilla_ref]
except IndexError:
vanilla = None
entrance.connect(region, addresses, target, vanilla)
world.spoiler.set_entrance(entrance.name, exit.name if exit is not None else region.name, 'entrance')