Plando: prevent duplicate candidate locations ()

This commit is contained in:
Silvris 2023-10-21 05:59:53 -05:00 committed by GitHub
parent 1a1d607b10
commit 7c2cb34b45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ def distribute_planned(world: MultiWorld) -> None:
for target_player in worlds:
locations += non_early_locations[target_player]
block['locations'] = locations
block['locations'] = list(dict.fromkeys(locations))
if not block['count']:
block['count'] = (min(len(block['items']), len(block['locations'])) if