From f8149a97fdd66a32e0036038ff0cce9234720d10 Mon Sep 17 00:00:00 2001 From: SokyranTheDragon Date: Tue, 26 Dec 2023 16:55:43 +0100 Subject: [PATCH] Fix compatibility issues due to ModsConfig.IsActive 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. --- .../MainTabWindow_MintResearch_SetTargetProject_Patch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.4/Source/Harmony/MainTabWindow_MintResearch_SetTargetProject_Patch.cs b/1.4/Source/Harmony/MainTabWindow_MintResearch_SetTargetProject_Patch.cs index d41a331..ba28675 100644 --- a/1.4/Source/Harmony/MainTabWindow_MintResearch_SetTargetProject_Patch.cs +++ b/1.4/Source/Harmony/MainTabWindow_MintResearch_SetTargetProject_Patch.cs @@ -9,7 +9,7 @@ namespace VanillaVehiclesExpanded [HarmonyPatch] public static class MainTabWindow_MintResearch_SetTargetProject_Patch { - public static bool Prepare() => ModsConfig.IsActive("Dubwise.DubsMintMenus"); + public static bool Prepare() => ModsConfig.IsActive("Dubwise.DubsMintMenus") || ModsConfig.IsActive("Dubwise.DubsMintMenus_steam"); [HarmonyTargetMethods] public static IEnumerable TargetMethods()