mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Try Catch
This commit is contained in:
parent
18f1b2a605
commit
63cf135550
@ -158,7 +158,14 @@ namespace NewHorizons
|
|||||||
private static void OnWakeUp()
|
private static void OnWakeUp()
|
||||||
{
|
{
|
||||||
IsSystemReady = true;
|
IsSystemReady = true;
|
||||||
Instance.OnStarSystemLoaded?.Invoke(Instance.CurrentStarSystem);
|
try
|
||||||
|
{
|
||||||
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user