Fill: don't crash before debug output in case of unfilled locations (#342)
This commit is contained in:
parent
75de616465
commit
cb024b00d9
2
Fill.py
2
Fill.py
|
@ -224,7 +224,7 @@ def distribute_items_restrictive(world: MultiWorld):
|
||||||
if unplaced or unfilled:
|
if unplaced or unfilled:
|
||||||
logging.warning(
|
logging.warning(
|
||||||
f'Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}')
|
f'Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}')
|
||||||
items_counter = Counter([location.item.player for location in world.get_locations()])
|
items_counter = Counter([location.item.player for location in world.get_locations() if location.item])
|
||||||
locations_counter = Counter([location.player for location in world.get_locations()])
|
locations_counter = Counter([location.player for location in world.get_locations()])
|
||||||
items_counter.update([item.player for item in unplaced])
|
items_counter.update([item.player for item in unplaced])
|
||||||
locations_counter.update([location.player for location in unfilled])
|
locations_counter.update([location.player for location in unfilled])
|
||||||
|
|
Loading…
Reference in New Issue