Pārlūkot izejas kodu

Add missing dependency check for dependency sort

Bepis 6 gadi atpakaļ
vecāks
revīzija
0b617e7b6d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      BepInEx/Utility.cs

+ 1 - 1
BepInEx/Utility.cs

@@ -56,7 +56,7 @@ namespace BepInEx
 
 	        while (nodeQueue.Count > 0)
 	        {
-		        List<TNode> nextBatch = nodeQueue.Where(x => !dependencySelector(x).Except(sorted).Any()).ToList();
+		        List<TNode> nextBatch = nodeQueue.Where(x => !dependencySelector(x).Except(sorted).Intersect(nodeQueue).Any()).ToList();
 
 				if (!nextBatch.Any())
 					throw new Exception("Cyclic Dependency:\r\n" +