From 65f0b5f223ca8ecd2d24084b2688d3dc1b51c7d1 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Wed, 22 Nov 2023 19:21:56 +0100 Subject: [PATCH] Ok let's not be dumb --- worlds/witness/regions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/witness/regions.py b/worlds/witness/regions.py index 2bec3a1e4aa6..2187010bac07 100644 --- a/worlds/witness/regions.py +++ b/worlds/witness/regions.py @@ -129,9 +129,9 @@ def create_regions(self, world: "WitnessWorld", player_logic: WitnessPlayerLogic regions_to_check.add(target.name) reachable_regions.add(target.name) - regions_by_name = {k: v for k, v in regions_by_name.items() if k in reachable_regions} + final_regions_list = [v for k, v in regions_by_name.items() if k in reachable_regions] - world.multiworld.regions += regions_by_name.values() + world.multiworld.regions += final_regions_list def __init__(self, locat: WitnessPlayerLocations, world: "WitnessWorld"): difficulty = world.options.puzzle_randomization.value