Fill: fix for crash when locations are prefilled
This commit is contained in:
parent
31a823bc34
commit
06ec72a064
2
Fill.py
2
Fill.py
|
@ -106,7 +106,7 @@ def fill_restrictive(world: MultiWorld, base_state: CollectionState, locations,
|
||||||
def distribute_items_restrictive(world: MultiWorld, fill_locations=None):
|
def distribute_items_restrictive(world: MultiWorld, fill_locations=None):
|
||||||
# If not passed in, then get a shuffled list of locations to fill in
|
# If not passed in, then get a shuffled list of locations to fill in
|
||||||
if not fill_locations:
|
if not fill_locations:
|
||||||
fill_locations = world.get_locations()
|
fill_locations = world.get_unfilled_locations()
|
||||||
|
|
||||||
world.random.shuffle(fill_locations)
|
world.random.shuffle(fill_locations)
|
||||||
|
|
||||||
|
|
|
@ -3,4 +3,4 @@ pony>=0.7.14
|
||||||
waitress>=2.0.0
|
waitress>=2.0.0
|
||||||
flask-caching>=1.10.1
|
flask-caching>=1.10.1
|
||||||
Flask-Compress>=1.10.1
|
Flask-Compress>=1.10.1
|
||||||
Flask-Limiter>=1.4
|
Flask-Limiter>=2.1
|
||||||
|
|
Loading…
Reference in New Issue