Skip to content

Commit

Permalink
Factorio: fix world generation in spoiler (#2209)
Browse files Browse the repository at this point in the history
This used a set operation previously, resulting in random order of dict items.
  • Loading branch information
black-sliver authored Sep 22, 2023
1 parent 9931605 commit 39a50da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/factorio/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ class FactorioWorldGen(OptionDict):
def __init__(self, value: typing.Dict[str, typing.Any]):
advanced = {"pollution", "enemy_evolution", "enemy_expansion"}
self.value = {
"basic": {key: value[key] for key in value.keys() - advanced},
"advanced": {key: value[key] for key in value.keys() & advanced}
"basic": {k: v for k, v in value.items() if k not in advanced},
"advanced": {k: v for k, v in value.items() if k in advanced}
}

# verify min_values <= max_values
Expand Down

0 comments on commit 39a50da

Please sign in to comment.