Skip to content

Commit

Permalink
Try to fix a light bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StollD committed Oct 6, 2017
1 parent 428a5ce commit 32f0012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kopernicus.Components/KopernicusStar.cs
Expand Up @@ -193,7 +193,7 @@ protected override void Awake()
SolarFlux = new Dictionary<String, Double>();
Stars.Add(this);
DontDestroyOnLoad(this);
light = gameObject.GetComponent<Light>();
light = gameObject.GetComponentInChildren<Light>();

// Gah
typeof(Sun).GetFields(BindingFlags.Instance | BindingFlags.NonPublic).Last(f => f.FieldType == typeof(Light)).SetValue(this, light);
Expand Down

0 comments on commit 32f0012

Please sign in to comment.