Skip to content

Commit

Permalink
Fix merges on dependant files from mods
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael P. Starkweather committed Jun 27, 2018
1 parent b44ba01 commit f3d96e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ModTek/ModTek.cs
Original file line number Diff line number Diff line change
Expand Up @@ -823,6 +823,12 @@ internal static void AddModEntries(VersionManifest manifest)
// this assumes that .json can only have a single type
modEntry.Type = matchingEntry.Type;

if (!typeCache.ContainsKey(matchingEntry.FilePath))
{
typeCache[matchingEntry.FilePath] = new List<string>();
typeCache[matchingEntry.FilePath].Add(modEntry.Type);
}

Log($"\t\tMerge => {modEntry.Id} ({modEntry.Type})");

jsonMerges[matchingEntry.FilePath].Add(modEntry.Path);
Expand Down

0 comments on commit f3d96e0

Please sign in to comment.