Subnautica: fix use of _valid_keys were valid_keys should be used. (#3346)

* Subnautica: fix use of _valid_keys were valid_keys should be used.

* Update Options.py
This commit is contained in:
Fabian Dill
2024-05-20 06:20:01 +02:00
committed by GitHub
parent 754fc11c1b
commit 14ffd1c70c
2 changed files with 2 additions and 1 deletions

View File

@@ -120,7 +120,7 @@ class FillerItemsDistribution(ItemDict):
"""Random chance weights of various filler resources that can be obtained.
Available items: """
__doc__ += ", ".join(f"\"{item_name}\"" for item_name in item_names_by_type[ItemType.resource])
_valid_keys = frozenset(item_names_by_type[ItemType.resource])
valid_keys = sorted(item_names_by_type[ItemType.resource])
default = {item_name: 1 for item_name in item_names_by_type[ItemType.resource]}
display_name = "Filler Items Distribution"