mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added missing null check
This commit is contained in:
parent
4af688253a
commit
b31e1bbcd7
@ -1,4 +1,4 @@
|
||||
using NewHorizons.Components.Orbital;
|
||||
using NewHorizons.Components.Orbital;
|
||||
using NewHorizons.External.Configs;
|
||||
using NewHorizons.Utility;
|
||||
using UnityEngine;
|
||||
@ -58,7 +58,7 @@ namespace NewHorizons.Builder.Orbital
|
||||
|
||||
var color = Color.white;
|
||||
if (config.Orbit.tint != null) color = config.Orbit.tint.ToColor();
|
||||
else if (config.Star != null) color = config.Star.tint.ToColor();
|
||||
else if (config.Star?.tint != null) color = config.Star.tint.ToColor();
|
||||
else if (config.Atmosphere?.clouds?.tint != null) color = config.Atmosphere.clouds.tint.ToColor();
|
||||
else if (config.Singularity != null) color = new Color(1f, 0.5f, 1f);
|
||||
else if (config.Water != null) color = new Color(0.5f, 0.5f, 1f);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user