From 0cde89544cd978eed03b4d8afe28d2b68c7eac99 Mon Sep 17 00:00:00 2001 From: Kyle Franz Date: Fri, 28 Jul 2023 18:56:15 -0700 Subject: [PATCH] probably fix crash --- worlds/ladx/LADXR/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/ladx/LADXR/generator.py b/worlds/ladx/LADXR/generator.py index 4d6a2a3f9d3c..1d03c6fbddb2 100644 --- a/worlds/ladx/LADXR/generator.py +++ b/worlds/ladx/LADXR/generator.py @@ -247,7 +247,7 @@ def generateRom(args, settings, ap_settings, auth, seed_name, logic, rnd=None, m # USEFUL_HINT = 1.0 # TODO: filter events, filter unshuffled keys all_items = multiworld.get_items() - our_items = [item for item in all_items if item.player == player_id and item.code is not None and item.location.show_in_spoiler] + our_items = [item for item in all_items if item.player == player_id and item.location and item.code is not None and item.location.show_in_spoiler] our_useful_items = [item for item in our_items if ItemClassification.progression in item.classification] def gen_hint(): chance = rnd.uniform(0, 1)