Changes I requested

This commit is contained in:
xen-42 2025-02-09 21:14:35 -05:00
parent fc0dd05cf3
commit 0f38b022f3
2 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,9 @@ using UnityEngine;
namespace NewHorizons.Components.EyeOfTheUniverse
{
/// <summary>
/// Class does nothing but is used with GetComponent to find instrument zones in the hierarchy
/// </summary>
public class InstrumentZone : MonoBehaviour
{

View File

@ -693,7 +693,14 @@ namespace NewHorizons.Handlers
if (body.Config.EyeOfTheUniverse != null)
{
EyeOfTheUniverseBuilder.Make(go, sector, body.Config.EyeOfTheUniverse, body);
if (Main.Instance.CurrentStarSystem == "EyeOfTheUniverse")
{
EyeOfTheUniverseBuilder.Make(go, sector, body.Config.EyeOfTheUniverse, body);
}
else
{
NHLogger.LogWarning($"A mod creator (you?) has defined Eye of the Universe specific settings on a body [{body.Config.name}] that is not in the eye of the universe");
}
}
if (body.Config.ParticleFields != null)