From 34b9344084cd114b75815ad07935346d1b43629f Mon Sep 17 00:00:00 2001 From: Fabian Dill Date: Sun, 13 Feb 2022 20:19:17 +0100 Subject: [PATCH] ItemLink; correct validation to allow for None replacement item --- Options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Options.py b/Options.py index 086428f61a..e5533b95bc 100644 --- a/Options.py +++ b/Options.py @@ -475,7 +475,7 @@ class ItemLinks(OptionList): if item_name not in world.item_names and item_name not in world.item_name_groups: raise Exception(f"Item {item_name} from option {self} " f"is not a valid item name from {world.game}") - if link["replacement_item"] not in world.item_names: + if link["replacement_item"] and link["replacement_item"] not in world.item_names: raise Exception(f"Item {link['replacement_item']} from option {self} " f"is not a valid item name from {world.game}")