From e63cf5ea8555a1e2652c5967f8a864f81e7e029c Mon Sep 17 00:00:00 2001 From: Silvris <58583688+Silvris@users.noreply.github.com> Date: Sat, 18 May 2024 11:53:31 -0500 Subject: [PATCH] fix bleeding default levels --- worlds/kdl3/regions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worlds/kdl3/regions.py b/worlds/kdl3/regions.py index e44f3dca1aca..9fe81c5ea876 100644 --- a/worlds/kdl3/regions.py +++ b/worlds/kdl3/regions.py @@ -1,6 +1,7 @@ import orjson import os from pkgutil import get_data +from copy import deepcopy from typing import TYPE_CHECKING, List, Dict, Optional, Union, Callable from BaseClasses import Region, CollectionState @@ -160,7 +161,7 @@ def generate_valid_levels(world: "KDL3World", shuffle_mode: int) -> Dict[int, Li except Exception: raise Exception(f"Failed to find valid stage for {level}-{stage}. Remaining Stages:{possible_stages}") else: - levels = default_levels.copy() + levels = deepcopy(default_levels) for level in levels: levels[level][6] = None # now handle bosses