Core: crash if non_local pool is too big
This commit is contained in:
parent
d10fbf8263
commit
8484193151
4
Fill.py
4
Fill.py
|
@ -220,8 +220,8 @@ def distribute_items_restrictive(world: MultiWorld) -> None:
|
||||||
world.push_item(defaultlocations.pop(i), item_to_place, False)
|
world.push_item(defaultlocations.pop(i), item_to_place, False)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
logging.warning(
|
raise Exception(f"Could not place non_local_item {item_to_place} among {defaultlocations}. "
|
||||||
f"Could not place non_local_item {item_to_place} among {defaultlocations}, tossing.")
|
f"Too many non-local items for too few remaining locations.")
|
||||||
|
|
||||||
world.random.shuffle(defaultlocations)
|
world.random.shuffle(defaultlocations)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue