From aa9aa8c9c61ad6b848d72f79257cc41c781e856d Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 16 Jul 2023 18:12:25 -0400 Subject: [PATCH] Comments --- NewHorizons/Handlers/PlanetDestructionHandler.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Handlers/PlanetDestructionHandler.cs b/NewHorizons/Handlers/PlanetDestructionHandler.cs index 4a752848..a5f7add7 100644 --- a/NewHorizons/Handlers/PlanetDestructionHandler.cs +++ b/NewHorizons/Handlers/PlanetDestructionHandler.cs @@ -54,10 +54,11 @@ namespace NewHorizons.Handlers public static void RemoveSolarSystem() { - // Stop the sun from killing the player + // Stop the sun from killing the player if they spawn at the center of the solar system var sunVolumes = SearchUtilities.Find("Sun_Body/Sector_SUN/Volumes_SUN"); sunVolumes.SetActive(false); + // Random shit breaks if we don't wait idk why foreach (var name in _solarSystemBodies) { var ao = AstroObjectLocator.GetAstroObject(name); @@ -65,7 +66,7 @@ namespace NewHorizons.Handlers else NHLogger.LogError($"Couldn't find [{name}]"); } - // Bring the sun back because why not + // Bring the sun back Delay.FireInNUpdates(() => { if (Locator.GetAstroObject(AstroObject.Name.Sun).gameObject.activeInHierarchy) { sunVolumes.SetActive(true); } }, 3); }