From e4adf35da2c95ca7745495d027e811e45bf6dff2 Mon Sep 17 00:00:00 2001 From: xen-42 Date: Fri, 27 Sep 2024 21:57:57 -0400 Subject: [PATCH 1/2] Fix that that last update didnt actually work --- NewHorizons/Handlers/StarChartHandler.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Handlers/StarChartHandler.cs b/NewHorizons/Handlers/StarChartHandler.cs index e0ed3585..d063abcc 100644 --- a/NewHorizons/Handlers/StarChartHandler.cs +++ b/NewHorizons/Handlers/StarChartHandler.cs @@ -68,10 +68,11 @@ namespace NewHorizons.Handlers RegisterFactForSystem(system.Config.factRequiredForWarp, system.UniqueID); } - if (system.UniqueID == Main.Instance.CurrentStarSystem && !string.IsNullOrEmpty(system.Config.factRequiredToExitViaWarpDrive)) + if (system.UniqueID == Main.Instance.CurrentStarSystem) { _factRequiredToExitViaWarpDrive = system.Config.factRequiredToExitViaWarpDrive; _canExitViaWarpDrive = system.Config.canExitViaWarpDrive || !string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive); + NHLogger.LogVerbose($"In system {system.UniqueID} can exit via warp drive? {system.Config.canExitViaWarpDrive} {_canExitViaWarpDrive} {_factRequiredToExitViaWarpDrive}"); } } } @@ -139,7 +140,7 @@ namespace NewHorizons.Handlers if (Main.Instance.CurrentStarSystem == "SolarSystem") canExitViaWarpDrive = true; - NHLogger.Log(canEnterViaWarpDrive, canExitViaWarpDrive, system, HasUnlockedSystem(system)); + NHLogger.LogVerbose(canEnterViaWarpDrive, canExitViaWarpDrive, system, HasUnlockedSystem(system)); return canWarpTo && canEnterViaWarpDrive @@ -152,6 +153,7 @@ namespace NewHorizons.Handlers { if (!string.IsNullOrEmpty(_factRequiredToExitViaWarpDrive) && factID == _factRequiredToExitViaWarpDrive) { + _canExitViaWarpDrive = true; if (!Main.HasWarpDrive) { Main.Instance.EnableWarpDrive(); From 1444cc12db92714ff247c9d7914756ec5e187fc4 Mon Sep 17 00:00:00 2001 From: xen-42 Date: Fri, 27 Sep 2024 21:58:41 -0400 Subject: [PATCH 2/2] Update manifest.json --- NewHorizons/manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/manifest.json b/NewHorizons/manifest.json index 03b343b9..c75a3c1f 100644 --- a/NewHorizons/manifest.json +++ b/NewHorizons/manifest.json @@ -4,7 +4,7 @@ "author": "xen, Bwc9876, JohnCorby, MegaPiggy, Clay, Trifid, and friends", "name": "New Horizons", "uniqueName": "xen.NewHorizons", - "version": "1.22.6", + "version": "1.22.7", "owmlVersion": "2.12.1", "dependencies": [ "JohnCorby.VanillaFix", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ], "conflicts": [ "PacificEngine.OW_CommonResources" ],