From 38395b815afb609f6934c9cf13b34b725c791b59 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Tue, 19 May 2015 16:52:22 +1200 Subject: [PATCH] ignore all the spaces --- FilterExtension/Utility/PartType.cs | 4 ++-- .../Configs/Patches/RealChute.cfg | 2 +- .../000_FilterExtensions/FilterExtensions.dll | Bin 41472 -> 41472 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FilterExtension/Utility/PartType.cs b/FilterExtension/Utility/PartType.cs index a02d9a04..b44f20c4 100644 --- a/FilterExtension/Utility/PartType.cs +++ b/FilterExtension/Utility/PartType.cs @@ -349,7 +349,7 @@ public static bool checkBulkHeadProfiles(AvailablePart part, string value, bool { if (part.bulkheadProfiles == null) { - if (value == "srf") + if (value.Trim() == "srf") return true; return false; } @@ -357,7 +357,7 @@ public static bool checkBulkHeadProfiles(AvailablePart part, string value, bool string[] values = value.Split(','); foreach (string s in part.bulkheadProfiles.Split(',')) { - if (values.Contains(s)) + if (values.Any(v => v.Trim() == s.Trim())) return true; } return false; diff --git a/GameData/000_FilterExtensions/Configs/Patches/RealChute.cfg b/GameData/000_FilterExtensions/Configs/Patches/RealChute.cfg index ba7f87af..dd784670 100644 --- a/GameData/000_FilterExtensions/Configs/Patches/RealChute.cfg +++ b/GameData/000_FilterExtensions/Configs/Patches/RealChute.cfg @@ -11,7 +11,7 @@ } } -@PART:HAS[@MODULE[RealChuteModule]]:NEEDS[RealChute]:AFTER[RealChute] +@PART[*]:HAS[@MODULE[RealChuteModule]]:NEEDS[RealChute]:AFTER[RealChute] { @category = Utility } diff --git a/GameData/000_FilterExtensions/FilterExtensions.dll b/GameData/000_FilterExtensions/FilterExtensions.dll index 9fc6880f465c602ea5850666b4245eb58991cea5..76b05fba9322c84999258f1b810cf9daaf4f5870 100644 GIT binary patch delta 79 zcmZoT!qjktX+j6n=dg`kOcg3duFjTb7UpKUt}bSVx+Vs$mbw;hX2!afuI7$Trsj@@ jhGs6CH&n2Q2$W@<)JuH((xE?jUe(qr!Q9P9dTc}i|H>O5 delta 79 zcmV-V0I>gn!~%fC0+5IT>>ja-0(c}fI7UJ>L^(1oMKv`rEi^