From 3b9807120b083717e35b0e91f590fecb697f3237 Mon Sep 17 00:00:00 2001 From: DasSkelett Date: Sun, 9 Jun 2019 18:41:35 +0200 Subject: [PATCH] Making History has been released with KSP 1.4.1 --- Core/KSPManager.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Core/KSPManager.cs b/Core/KSPManager.cs index 03551cfb47..732bfdfb06 100644 --- a/Core/KSPManager.cs +++ b/Core/KSPManager.cs @@ -252,7 +252,7 @@ public void FakeInstance(string new_name, string new_path, KspVersion version, s { // MakingHistory if (String.IsNullOrEmpty(dlcVersions[0])) { } - else if (version.CompareTo(new KspVersion(1, 4, 0)) >= 0) + else if (version >= new KspVersion(1, 4, 1)) { string dlcDir = Path.Combine(new_path, new DLC.MakingHistoryDlcDetector().InstallPath()); file_transaction.CreateDirectory(dlcDir); @@ -262,11 +262,12 @@ public void FakeInstance(string new_name, string new_path, KspVersion version, s } else { - throw new IncorrectKSPVersionKraken("KSP version 1.4.0 or above is needed for Making History DLC."); + throw new IncorrectKSPVersionKraken("KSP version 1.4.1 or above is needed for Making History DLC."); } + //BreakingGround if (dlcVersions.Length < 1 || String.IsNullOrEmpty(dlcVersions[1])) { } - else if (version.CompareTo(new KspVersion(1, 7, 1)) >= 0) + else if (version >= new KspVersion(1, 7, 1)) { string dlcDir = Path.Combine(new_path, new DLC.BreakingGroundDlcDetector().InstallPath()); file_transaction.CreateDirectory(dlcDir);