mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
ItemLink; correct validation to allow for None replacement item
This commit is contained in:
@@ -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}")
|
||||
|
||||
|
Reference in New Issue
Block a user