Skip to content

Commit

Permalink
calc the difference correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Apr 16, 2024
1 parent 9b662b0 commit 972ad60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
f" is trying to remove items from their pool that don't exist: {remaining_items}")
# find all filler we generated for the current player and remove until it matches
removables = [item for item in new_items if item.player == player]
for _ in range(len(remaining_items)):
for _ in range(sum(remaining_items.values())):
new_items.remove(removables.pop())
assert len(multiworld.itempool) == len(new_items), "Item Pool amounts should not change."
multiworld.itempool[:] = new_items
Expand Down

0 comments on commit 972ad60

Please sign in to comment.