Fix FillError message assembly crashing the error

This commit is contained in:
Fabian Dill 2020-11-22 22:53:02 +01:00
parent 19bbfab769
commit fd020ead7f
1 changed files with 2 additions and 1 deletions

View File

@ -54,8 +54,9 @@ def fill_restrictive(world, base_state: CollectionState, locations, itempool, si
for location in region.locations: for location in region.locations:
if location.item and not location.event: if location.item and not location.event:
placements.append(location) placements.append(location)
raise FillError(f'No more spots to place {item_to_place}, locations {locations} are invalid. ' raise FillError(f'No more spots to place {item_to_place}, locations {locations} are invalid. '
f'Already placed {len(placements)}: {", ".join(placements)}') f'Already placed {len(placements)}: {", ".join(str(place) for place in placements)}')
world.push_item(spot_to_fill, item_to_place, False) world.push_item(spot_to_fill, item_to_place, False)
locations.remove(spot_to_fill) locations.remove(spot_to_fill)