From 9b5126d959791f871edd9ac2a9b4474420c7ea6e Mon Sep 17 00:00:00 2001 From: Hayden Crookham Date: Wed, 14 Jan 2026 17:51:52 -0600 Subject: [PATCH] GLYPHS: added check to prevent errors when no trap types are defined --- worlds/glyphs/Items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worlds/glyphs/Items.py b/worlds/glyphs/Items.py index 59eea92b2859..ebfd5b9281df 100644 --- a/worlds/glyphs/Items.py +++ b/worlds/glyphs/Items.py @@ -129,7 +129,7 @@ def create_junk_items(world: "GlyphsWorld", count: int) -> List[Item]: trap_list[name] = 30 for i in range(count): - if not world.options.EnableTraps.value: + if not world.options.EnableTraps.value or not world.options.TrapTypes.value: junk_pool.append(world.create_item( world.random.choices(list(junk_list.keys()), weights=list(junk_list.values()), k=1)[0])) continue