From 0a2e4a096bf0f319f89627291f66b4bfbea953f3 Mon Sep 17 00:00:00 2001 From: TerrificTrifid <99054745+TerrificTrifid@users.noreply.github.com> Date: Sat, 25 Feb 2023 18:42:47 -0600 Subject: [PATCH] Fix supernova effect --- NewHorizons/Builder/Body/SupernovaEffectBuilder.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NewHorizons/Builder/Body/SupernovaEffectBuilder.cs b/NewHorizons/Builder/Body/SupernovaEffectBuilder.cs index d8836b76..77dbc082 100644 --- a/NewHorizons/Builder/Body/SupernovaEffectBuilder.cs +++ b/NewHorizons/Builder/Body/SupernovaEffectBuilder.cs @@ -60,9 +60,9 @@ namespace NewHorizons.Builder.Body var supernovaEffectController = supernovaController.AddComponent(); if (ambientLight != null) { - currentController._ambientLight = ambientLight; - currentController._ambientLightOrigIntensity = new float[ambientLight.Length]; - for (int i = 0; i < ambientLight.Length; i++) currentController._ambientLightOrigIntensity[i] = ambientLight[i].intensity; + supernovaEffectController._ambientLight = ambientLight; + supernovaEffectController._ambientLightOrigIntensity = new float[ambientLight.Length]; + for (int i = 0; i < ambientLight.Length; i++) supernovaEffectController._ambientLightOrigIntensity[i] = ambientLight[i].intensity; } if (config.Atmosphere != null && config.Atmosphere.atmosphereSunIntensity != 0) supernovaEffectController._atmosphereOrigSunIntensity = config.Atmosphere.atmosphereSunIntensity; supernovaEffectController._atmosphere = atmosphere;