Skip to content

Commit c7b29fb

Browse files
authored
Merge pull request #49 from ManualForArchipelago/tricky-walruses
Fix for "Unstable APWorld: place_item on first location causes generation failure"
2 parents 19bc213 + 01ebee1 commit c7b29fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/DataValidation.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,10 @@ def checkStartingItemsForBadSyntax():
376376
@staticmethod
377377
def checkPlacedItemsAndCategoriesForBadSyntax():
378378
for location in DataValidation.location_table:
379-
if not (place_item := location.get("place_item", False)) and not (place_item_category := location.get("place_item_category", False)):
379+
place_item = location.get("place_item", False)
380+
place_item_category = location.get("place_item_category", False)
381+
382+
if not place_item and not place_item_category:
380383
continue
381384

382385
if place_item and type(place_item) is not list:

0 commit comments

Comments
 (0)