DS3: Use remaining_fill instead of custom fill (#4397)

---------

Co-authored-by: Mysteryem <Mysteryem@users.noreply.github.com>
This commit is contained in:
Exempt-Medic
2026-03-10 15:11:23 -04:00
committed by GitHub
parent a8e926a1a9
commit 3c802d03a1
2 changed files with 8 additions and 18 deletions

View File

@@ -280,6 +280,7 @@ def remaining_fill(multiworld: MultiWorld,
item_to_place = itempool.pop()
spot_to_fill: typing.Optional[Location] = None
# going through locations in the same order as the provided `locations` argument
for i, location in enumerate(locations):
if location_can_fill_item(location, item_to_place):
# popping by index is faster than removing by content,