diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index aca59e13..45520195 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -66,7 +66,7 @@ namespace NewHorizons.Handlers var starLightGO = UnityEngine.Object.Instantiate(sun.GetComponentInChildren().gameObject); foreach (var comp in starLightGO.GetComponents()) { - if (comp is not SunLightController && comp is not SunLightParamUpdater && comp is not Light && comp is not Transform) + if (comp is not (SunLightController or SunLightParamUpdater or Light or Transform)) { UnityEngine.Object.Destroy(comp); }