From 9536c3d4ead5e0a5b4e32d9c1f7ebfaa186d1910 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 12 Aug 2023 14:09:35 -0400 Subject: [PATCH 1/2] If a black hole isn't paired right don't give up on all others --- NewHorizons/Builder/Body/SingularityBuilder.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NewHorizons/Builder/Body/SingularityBuilder.cs b/NewHorizons/Builder/Body/SingularityBuilder.cs index ad94374e6..9db421339 100644 --- a/NewHorizons/Builder/Body/SingularityBuilder.cs +++ b/NewHorizons/Builder/Body/SingularityBuilder.cs @@ -113,24 +113,24 @@ public static void PairAllSingularities() if (!_singularitiesByID.TryGetValue(blackHoleID, out GameObject blackHole)) { NHLogger.LogWarning($"Black hole [{blackHoleID}] is missing."); - break; + continue; } if (!_singularitiesByID.TryGetValue(whiteHoleID, out GameObject whiteHole)) { NHLogger.LogWarning($"White hole [{whiteHoleID}] is missing."); - break; + continue; } var whiteHoleVolume = whiteHole.GetComponentInChildren(); var blackHoleVolume = blackHole.GetComponentInChildren(); if (whiteHoleVolume == null || blackHoleVolume == null) { NHLogger.LogWarning($"Singularities [{blackHoleID}] and [{whiteHoleID}] do not have compatible polarities."); - break; + continue; } if (blackHoleVolume._whiteHole != null && blackHoleVolume._whiteHole != whiteHoleVolume) { NHLogger.LogWarning($"Black hole [{blackHoleID}] has already been linked!"); - break; + continue; } NHLogger.LogVerbose($"Pairing singularities [{blackHoleID}], [{whiteHoleID}]"); blackHoleVolume._whiteHole = whiteHoleVolume; From 0a76fca4cbe43a00361e3ebeae763a13f800f304 Mon Sep 17 00:00:00 2001 From: Nick Date: Sat, 12 Aug 2023 14:09:57 -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 32642e869..72bbe1d45 100644 --- a/NewHorizons/manifest.json +++ b/NewHorizons/manifest.json @@ -4,7 +4,7 @@ "author": "xen, Bwc9876, clay, MegaPiggy, John, Trifid, Hawkbar, Book", "name": "New Horizons", "uniqueName": "xen.NewHorizons", - "version": "1.14.2", + "version": "1.14.3", "owmlVersion": "2.9.3", "dependencies": [ "JohnCorby.VanillaFix", "_nebula.MenuFramework", "xen.CommonCameraUtility", "dgarro.CustomShipLogModes" ], "conflicts": [ "Raicuparta.QuantumSpaceBuddies", "PacificEngine.OW_CommonResources" ],