File tree Expand file tree Collapse file tree
src/IronyModManager.Services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments