mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix nomai lamps being black
This commit is contained in:
parent
26dc4aebaa
commit
19b0cdddbc
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user