Skip to content

Commit

Permalink
Core: fix unfilled items "Per-Player Count" (ArchipelagoMW#2661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris authored and qwint committed Jun 24, 2024
1 parent f877bf6 commit f24a265
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,9 @@ def mark_for_locking(location: Location):
if unplaced or unfilled:
logging.warning(
f"Unplaced items({len(unplaced)}): {unplaced} - Unfilled Locations({len(unfilled)}): {unfilled}")
items_counter = Counter(location.item.player for location in multiworld.get_locations() if location.item)
items_counter = Counter(location.item.player for location in multiworld.get_filled_locations())
locations_counter = Counter(location.player for location in multiworld.get_locations())
items_counter.update(item.player for item in unplaced)
locations_counter.update(location.player for location in unfilled)
print_data = {"items": items_counter, "locations": locations_counter}
logging.info(f"Per-Player counts: {print_data})")

Expand Down

0 comments on commit f24a265

Please sign in to comment.