Skip to content

Commit

Permalink
Core: crash if non_local pool is too big
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Aug 15, 2022
1 parent d10fbf8 commit 8484193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def distribute_items_restrictive(world: MultiWorld) -> None:
world.push_item(defaultlocations.pop(i), item_to_place, False)
break
else:
logging.warning(
f"Could not place non_local_item {item_to_place} among {defaultlocations}, tossing.")
raise Exception(f"Could not place non_local_item {item_to_place} among {defaultlocations}. "
f"Too many non-local items for too few remaining locations.")

world.random.shuffle(defaultlocations)

Expand Down

0 comments on commit 8484193

Please sign in to comment.