Skip to content

Fix compatibility issues due to ModsConfig.IsActive#18

Merged
legodude17 merged 2 commits intoVanilla-Expanded:mainfrom
SokyranTheDragon:workshop-local-issue-fix
Jan 7, 2024
Merged

Fix compatibility issues due to ModsConfig.IsActive#18
legodude17 merged 2 commits intoVanilla-Expanded:mainfrom
SokyranTheDragon:workshop-local-issue-fix

Conversation

@SokyranTheDragon
Copy link
Contributor

@SokyranTheDragon SokyranTheDragon commented Dec 26, 2023

The issue occurs when checking if a mod is active with ModsConfig.IsActive when running the workshop version of a mod while there's a local copy in the mods directory. In those cases the ModsConfig.IsActive will return false as the running mod will have the _steam postfix.

The simple fix is to simply check for mod ID, as well as the mod ID with the _steam postfix.

For related PRs, check:
Vanilla-Expanded/VanillaExpandedFramework#72

The issue occurs when checking if a mod is active with `ModsConfig.IsActive` when running the workshop version of a mod while there's a local copy in the mods directory. In those cases the `ModsConfig.IsActive` will return false as the running mod will have the `_steam` postfix.

The simple fix is to simply check for mod ID, as well as the mod ID with the `_steam` postfix.
@legodude17 legodude17 merged commit c617366 into Vanilla-Expanded:main Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants