Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] Remove mod IDs when GAME_MODS_IDS_LIST is empty #34

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ def bool_str(text):
os.environ["GAME_PROPS_NETWORK_VIEW_DISTANCE"]
)

if env_defined("GAME_MODS_IDS_LIST") or env_defined("GAME_MODS_JSON_FILE_PATH"):
# Since we want to keep ENVs as a single source of truth
# we will regenerate the mod list in case any manual changes were made
config["game"]["mods"] = []
config_mod_ids = []
# Since we want to keep ENVs as a single source of truth
# we will regenerate the mod list in case any manual changes were made
# also deletes the mod entries when GAME_MODS_IDS_LIST is empty
config["game"]["mods"] = []
config_mod_ids = []
if env_defined("GAME_MODS_IDS_LIST"):
reg = re.compile(r"^[A-Z\d,=.]+$")
assert reg.match(
Expand Down
Loading