Skip to content

Commit 7f7b206

Browse files
committed
Readd other types of defs detected
1 parent f2cf1d0 commit 7f7b206

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/IronyModManager.Services/ModPatchCollectionService.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created : 05-26-2020
55
//
66
// Last Modified By : Mario
7-
// Last Modified On : 07-09-2026
7+
// Last Modified On : 07-10-2026
88
// ***********************************************************************
99
// <copyright file="ModPatchCollectionService.cs" company="Mario">
1010
// Mario
@@ -120,7 +120,6 @@ public class ModPatchCollectionService(
120120
/// </summary>
121121
private const int MaxModsToProcessInParallel = 6;
122122

123-
124123
/// <summary>
125124
/// The mod name ignore counter identifier
126125
/// </summary>
@@ -472,6 +471,7 @@ public virtual async Task<IConflictResult> FindConflictsAsync(IIndexedDefinition
472471
{
473472
var inlines = allDefs.Where(def => (def.Id.Equals(Parser.Common.Constants.Stellaris.InlineScriptId, StringComparison.OrdinalIgnoreCase) || def.ContainsInlineIdentifier) && !def.File.StartsWith(provider.InlineScriptsPath))
474473
.ToList();
474+
var others = allDefs.Where(p => !inlines.Contains(p)).ToList();
475475
total += inlines.Count;
476476

477477
var tempIndex = DIResolver.Get<IIndexedDefinitions>();
@@ -483,7 +483,7 @@ public virtual async Task<IConflictResult> FindConflictsAsync(IIndexedDefinition
483483
}
484484

485485
var inlineOpLock = new AsyncLock();
486-
prunedInlineDefinitions = [];
486+
prunedInlineDefinitions = [.. others];
487487
var reportedInlineErrors = new HashSet<string>();
488488
await Parallel.ForEachAsync(
489489
inlines,
@@ -698,7 +698,6 @@ await Parallel.ForEachAsync(
698698
progressMutex.Dispose();
699699
});
700700

701-
702701
tempIndex.Dispose();
703702
}
704703
else

0 commit comments

Comments
 (0)