From 8404ab4fa4e341745fb3178f582de5f8522ff5a2 Mon Sep 17 00:00:00 2001 From: deadman Date: Tue, 9 Aug 2016 20:53:56 +0200 Subject: [PATCH] Fix display of possible duplicate entries for removed parts --- KSPPartRemover/Command/RemoveParts.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KSPPartRemover/Command/RemoveParts.cs b/KSPPartRemover/Command/RemoveParts.cs index 761241d..ce26a27 100644 --- a/KSPPartRemover/Command/RemoveParts.cs +++ b/KSPPartRemover/Command/RemoveParts.cs @@ -73,7 +73,7 @@ private List FindRemovedAndDependentParts (KspCraftObject craft, var dependentParts = new HashSet (); Parallel.ForEach (removedParts, removedPart => { - foreach (var part in partLookup.LookupHardDependencies (removedPart)) { + foreach (var part in partLookup.LookupHardDependencies (removedPart).Except (removedParts)) { lock (dependentParts) { dependentParts.Add (part); }