From b50cc53a4daa111c3a415ebd915e9686d38fb8ad Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Mon, 7 Aug 2023 19:12:12 -0700 Subject: [PATCH] force call SunLightEffectsController.Update to make it switch star --- NewHorizons/Handlers/PlanetDestructionHandler.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NewHorizons/Handlers/PlanetDestructionHandler.cs b/NewHorizons/Handlers/PlanetDestructionHandler.cs index ec9d1674..938877c3 100644 --- a/NewHorizons/Handlers/PlanetDestructionHandler.cs +++ b/NewHorizons/Handlers/PlanetDestructionHandler.cs @@ -78,6 +78,9 @@ namespace NewHorizons.Handlers gameObject.SetActive(false); } GameObject.FindObjectOfType().gameObject.SetActive(false); + + // force call update here to make it switch to an active star. idk why we didnt have to do this before + SunLightEffectsController.Instance.Update(); }, 2); // Have to wait or shit goes wild foreach (var streamingAssetBundle in StreamingManager.s_activeBundles)