mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Move OnStarSystemLoaded to not be on wake up
This commit is contained in:
parent
d9df36bae3
commit
f01471775c
@ -198,15 +198,6 @@ namespace NewHorizons
|
|||||||
private static void OnWakeUp()
|
private static void OnWakeUp()
|
||||||
{
|
{
|
||||||
IsSystemReady = true;
|
IsSystemReady = true;
|
||||||
try
|
|
||||||
{
|
|
||||||
Logger.Log($"Star system loaded [{Instance.CurrentStarSystem}]");
|
|
||||||
Instance.OnStarSystemLoaded?.Invoke(Instance.CurrentStarSystem);
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Logger.LogError($"Exception thrown when invoking star system loaded event with parameter [{Instance.CurrentStarSystem}] : {e.GetType().FullName} {e.Message} {e.StackTrace}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnSceneUnloaded(Scene scene)
|
private void OnSceneUnloaded(Scene scene)
|
||||||
@ -302,6 +293,16 @@ namespace NewHorizons
|
|||||||
|
|
||||||
// Fix the map satellite
|
// Fix the map satellite
|
||||||
SearchUtilities.Find("HearthianMapSatellite_Body", false).AddComponent<MapSatelliteOrbitFix>();
|
SearchUtilities.Find("HearthianMapSatellite_Body", false).AddComponent<MapSatelliteOrbitFix>();
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Logger.Log($"Star system loaded [{Instance.CurrentStarSystem}]");
|
||||||
|
Instance.OnStarSystemLoaded?.Invoke(Instance.CurrentStarSystem);
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Logger.LogError($"Exception thrown when invoking star system loaded event with parameter [{Instance.CurrentStarSystem}] : {e.GetType().FullName} {e.Message} {e.StackTrace}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user