mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't error at eye of universe
This commit is contained in:
parent
f2dd6b04d2
commit
c958ec6f44
@ -98,6 +98,8 @@ namespace NewHorizons.Components.SizeControllers
|
||||
{
|
||||
var sun = GameObject.FindObjectOfType<SunController>();
|
||||
|
||||
if (sun == null) return;
|
||||
|
||||
// Need to grab all this early bc the star might only Start after the solar system was made (remnants)
|
||||
_defaultCollapseStartSurfaceMaterial = new Material(sun._collapseStartSurfaceMaterial);
|
||||
_defaultCollapseEndSurfaceMaterial = new Material(sun._collapseEndSurfaceMaterial);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user