Skip to content

Commit

Permalink
Skip fetching builtinMod data if the folder has already been added
Browse files Browse the repository at this point in the history
  • Loading branch information
LaughingLeader committed Jul 17, 2022
1 parent 7cb1991 commit c892d34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DivinityModManagerCore/Util/DivinityModDataLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public static async Task<List<DivinityModData>> LoadModPackageDataAsync(string m
if (modFolderMatch.Success)
{
var modFolder = Path.GetFileName(modFolderMatch.Groups[2].Value.TrimEnd(Path.DirectorySeparatorChar));
if(builtinMods.TryGetValue(modFolder, out var builtinMod))
if(!builtinModOverrides.ContainsKey(modFolder) && builtinMods.TryGetValue(modFolder, out var builtinMod))
{
hasBuiltinDirectory = true;
builtinModOverrides[builtinMod.Folder] = builtinMod;
Expand Down

0 comments on commit c892d34

Please sign in to comment.