Plando: prevent duplicate candidate locations (#2286)

This commit is contained in:
Silvris
2023-10-21 05:59:53 -05:00
committed by GitHub
parent 1a1d607b10
commit 7c2cb34b45

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