Fixed generation error on Houlihan connection line

This commit is contained in:
codemann8
2021-10-05 20:26:49 -05:00
parent 80ae3eecc2
commit b42b6034e1

View File

@@ -857,7 +857,7 @@ def link_entrances(world, player):
# ensure Houlihan exits where Links House does
# TODO: Plando should overrule this
for links_house in world.get_entrance('Links House Exit', player).connected_region.exits:
if links_house.connected_region.name == 'Links House':
if links_house.connected_region and links_house.connected_region.name == 'Links House':
break
connect_exit(world, 'Chris Houlihan Room Exit', links_house.name, player)