From 0db3dcbddcb7dcf48b3cd574cdc7090e58a0c200 Mon Sep 17 00:00:00 2001 From: CookieCat Date: Fri, 22 Mar 2024 21:53:28 -0400 Subject: [PATCH] a --- worlds/ahit/Regions.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/worlds/ahit/Regions.py b/worlds/ahit/Regions.py index 038a4ef3ba..8772202b34 100644 --- a/worlds/ahit/Regions.py +++ b/worlds/ahit/Regions.py @@ -716,7 +716,13 @@ def connect_time_rift(world: "HatInTimeWorld", time_rift: Region, exit_region: R i: int = 1 while i <= count: name = f"{time_rift.name} Portal - Entrance {i}" - entrance: Entrance = world.multiworld.get_entrance(name, world.player) + entrance: Entrance + try: + entrance = world.multiworld.get_entrance(name, world.player) + except KeyError: + entrance = time_rift.entrances[0] + + # noinspection PyUnboundLocalVariable reconnect_regions(entrance, entrance.parent_region, exit_region) i += 1