internal static void StartTravelingHook(MapChange __instance) { if (!Enabled.Value || Instance == null) { return; } __instance.SafeProc( i => i.scenario.SafeProc( s => s.currentHeroine.SafeProc(h => Instance.TravelingStart(h)))); }
internal static void StartTravelingHook(MapChange __instance) { try { if (!Enabled.Value || Instance == null) { return; } __instance.SafeProc( i => i.scenario.SafeProc( s => s.currentHeroine.SafeProc(Instance.TravelingStart))); } catch (Exception err) { Logger.LogException(err, nameof(StartTravelingHook)); } }