mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-04-22 00:43:32 -07:00
a
This commit is contained in:
@@ -716,7 +716,13 @@ def connect_time_rift(world: "HatInTimeWorld", time_rift: Region, exit_region: R
|
|||||||
i: int = 1
|
i: int = 1
|
||||||
while i <= count:
|
while i <= count:
|
||||||
name = f"{time_rift.name} Portal - Entrance {i}"
|
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)
|
reconnect_regions(entrance, entrance.parent_region, exit_region)
|
||||||
i += 1
|
i += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user