Skip to content

Commit

Permalink
Remove mod IDs when GAME_MODS_IDS_LIST is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
hafometh88 committed Dec 13, 2023
1 parent 32a30c9 commit 4d4ec2c
Showing 1 changed file with 5 additions and 5 deletions.
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

0 comments on commit 4d4ec2c

Please sign in to comment.