diff --git a/worlds/alttp/Rom.py b/worlds/alttp/Rom.py index f69e6bb9..99cc78e2 100644 --- a/worlds/alttp/Rom.py +++ b/worlds/alttp/Rom.py @@ -850,9 +850,9 @@ def patch_rom(world: MultiWorld, rom: LocalRom, player: int, enemized: bool): rom.write_byte(0x155C9, local_random.choice([0x11, 0x16])) # Randomize GT music too with map shuffle # patch entrance/exits/holes - for region in world.regions: + for region in world.get_regions(player): for exit in region.exits: - if exit.target is not None and exit.player == player: + if exit.target is not None: if isinstance(exit.addresses, tuple): offset = exit.target room_id, ow_area, vram_loc, scroll_y, scroll_x, link_y, link_x, camera_y, camera_x, unknown_1, unknown_2, door_1, door_2 = exit.addresses