This commit is contained in:
Noah Pilarski 2022-09-03 11:08:27 -04:00
parent 2dd8987217
commit 8e8ac84ad2
2 changed files with 4 additions and 0 deletions

View File

@ -380,6 +380,7 @@ namespace NewHorizons.Handlers
if (Main.Instance.CurrentStarSystem == "EyeOfTheUniverse")
{
// Disable any bodies when not at eye, vessel, or vortex.
EyeStateActivationController eyeStateActivation = SearchUtilities.Find("SolarSystemRoot").AddComponent<EyeStateActivationController>();
eyeStateActivation._object = go;
eyeStateActivation._activeStates = new EyeState[3]

View File

@ -341,6 +341,9 @@ namespace NewHorizons
var solarSystemRoot = SearchUtilities.Find("SolarSystemRoot");
// Disable forest and observatory so that a custom body doesn't accidentally pass through them. (they are 6.5km away from eye)
// idk why mobius didn't add activation controllers for these
var forestActivation = solarSystemRoot.AddComponent<EyeStateActivationController>();
forestActivation._object = eyeSector.gameObject.FindChild("ForestOfGalaxies_Root");
forestActivation._activeStates = new EyeState[]