From 9d2f4f05f08694b66d84cccea49766c60ba7e908 Mon Sep 17 00:00:00 2001 From: xen-42 Date: Tue, 17 Dec 2024 20:45:59 -0500 Subject: [PATCH] Include old method signature just in case some mod somewhere calls it directly --- NewHorizons/Components/Quantum/QuantumPlanet.cs | 2 +- NewHorizons/Handlers/PlanetCreationHandler.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Components/Quantum/QuantumPlanet.cs b/NewHorizons/Components/Quantum/QuantumPlanet.cs index cec24a24..d4da2a7e 100644 --- a/NewHorizons/Components/Quantum/QuantumPlanet.cs +++ b/NewHorizons/Components/Quantum/QuantumPlanet.cs @@ -157,7 +157,7 @@ namespace NewHorizons.Components.Quantum astroObject.SetOrbitalParametersFromTrueAnomaly(orbitalParameters.eccentricity, orbitalParameters.semiMajorAxis, orbitalParameters.inclination, orbitalParameters.argumentOfPeriapsis, orbitalParameters.longitudeOfAscendingNode, orbitalParameters.trueAnomaly); - PlanetCreationHandler.UpdatePosition(gameObject, orbitalParameters, primaryBody, astroObject, true); + PlanetCreationHandler.UpdatePosition(gameObject, orbitalParameters, primaryBody, astroObject); gameObject.transform.parent = null; if (!Physics.autoSyncTransforms) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index fca3b354..c9af4897 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -910,6 +910,12 @@ namespace NewHorizons.Handlers return; } + public static void UpdatePosition(GameObject go, IOrbitalParameters orbit, AstroObject primaryBody, AstroObject secondaryBody) + { + // Keeping old method signature because its the kind of method I think something somewhere might call + UpdatePosition(go, orbit, primaryBody, secondaryBody, true); + } + public static void UpdatePosition(GameObject go, IOrbitalParameters orbit, AstroObject primaryBody, AstroObject secondaryBody, bool adjustZoomSpeed) { NHLogger.LogVerbose($"Placing [{secondaryBody?.name}] around [{primaryBody?.name}]");