Fix nomai lamps being black

This commit is contained in:
Noah Pilarski 2024-06-04 18:37:18 -04:00
parent 26dc4aebaa
commit 19b0cdddbc
2 changed files with 16 additions and 0 deletions

View File

@ -30,6 +30,13 @@ namespace NewHorizons.Components
nnc._inactiveMaterial = materials[0];
nnc._activeMaterial = materials[1];
}
NomaiLamp nl = GetComponentInParent<NomaiLamp>();
if (nl != null)
{
nl.enabled = true;
nl.Awake();
}
}
}
}

View File

@ -275,6 +275,15 @@ namespace NewHorizons.Handlers
}
}
}
else
{
foreach (NomaiLamp lamp in vesselWarpController.transform.root.GetComponentsInChildren<NomaiLamp>(true))
{
lamp._startOn = true;
lamp.Awake();
}
}
vesselWarpController.OnSlotDeactivated(vesselWarpController._coordinatePowerSlot);
if (!db) vesselWarpController.OnSlotActivated(vesselWarpController._coordinatePowerSlot);
vesselWarpController._gravityVolume.SetFieldMagnitude(vesselWarpController._origGravityMagnitude);