diff --git a/src/open_samus_returns_rando/pickups/custom_pickups.py b/src/open_samus_returns_rando/pickups/custom_pickups.py index 6bf71fa..bdc9e5d 100644 --- a/src/open_samus_returns_rando/pickups/custom_pickups.py +++ b/src/open_samus_returns_rando/pickups/custom_pickups.py @@ -48,6 +48,10 @@ def add_pickups(editor: PatcherEditor, new_pickup: NewPickups) -> None: def patch_custom_pickups(editor: PatcherEditor, configuration: dict) -> None: for new_pickup in new_pickups: - if configuration["objective"]["final_boss"] == "Ridley" and new_pickup.name == "LE_Item_Ridley": + if ( + "objective" in configuration + and configuration["objective"]["final_boss"] == "Ridley" + and new_pickup.name == "LE_Item_Ridley" + ): continue add_pickups(editor, new_pickup)