Skip to content

Commit

Permalink
oops left a comment in
Browse files Browse the repository at this point in the history
  • Loading branch information
NewSoupVi committed Nov 3, 2023
1 parent 73771bc commit 44adafc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Fill.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def failed(warning: str, force: typing.Union[bool, str]) -> None:
err.append(f"Cannot place {item_name} into already filled location {location}.")
else:
err.append(f"Mismatch between {item_name} and {location}, only one is an event.")
else: # Execute if break statement wasn't hit: Placement was unsuccessful
else: # Execute if break statement wasn't hit: Placement was unsuccessful, put item back if from_pool
if from_pool:
world.itempool.append(item)
if count == maxcount:
Expand All @@ -960,8 +960,6 @@ def failed(warning: str, force: typing.Union[bool, str]) -> None:
f"Plando block failed to place {m - count} of {m} item(s) for {world.player_name[player]}, error(s): {' '.join(err)}",
placement['force'])

# Sort indices in reverse so we can remove them one by one

for (item, location) in successful_pairs:
world.push_item(location, item, collect=False)
location.event = True # flag location to be checked during fill
Expand Down

0 comments on commit 44adafc

Please sign in to comment.