force call SunLightEffectsController.Update to make it switch star

This commit is contained in:
JohnCorby 2023-08-07 19:12:12 -07:00
parent fb4f425100
commit b50cc53a4d

View File

@ -78,6 +78,9 @@ namespace NewHorizons.Handlers
gameObject.SetActive(false); gameObject.SetActive(false);
} }
GameObject.FindObjectOfType<SunProxy>().gameObject.SetActive(false); GameObject.FindObjectOfType<SunProxy>().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 }, 2); // Have to wait or shit goes wild
foreach (var streamingAssetBundle in StreamingManager.s_activeBundles) foreach (var streamingAssetBundle in StreamingManager.s_activeBundles)