From c44dd5d85ff9ded15829895f6252ebc7640c15f4 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Sun, 11 Sep 2022 04:08:41 -0400 Subject: [PATCH] Don't generate ship log when warping back to eye --- NewHorizons/Patches/ShipLogPatches.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NewHorizons/Patches/ShipLogPatches.cs b/NewHorizons/Patches/ShipLogPatches.cs index 96a89c01..43246b6a 100644 --- a/NewHorizons/Patches/ShipLogPatches.cs +++ b/NewHorizons/Patches/ShipLogPatches.cs @@ -19,6 +19,8 @@ namespace NewHorizons.Patches [HarmonyPatch(typeof(ShipLogManager), nameof(ShipLogManager.Awake))] public static void ShipLogManager_Awake_Prefix(ShipLogManager __instance) { + if (Main.Instance.IsWarpingBackToEye) return; + RumorModeBuilder.Init(); ShipLogHandler.Init(); @@ -59,6 +61,8 @@ namespace NewHorizons.Patches [HarmonyPatch(typeof(ShipLogManager), nameof(ShipLogManager.Awake))] public static void ShipLogManager_Awake_Postfix(ShipLogManager __instance) { + if (Main.Instance.IsWarpingBackToEye) return; + ShipLogHandler.CheckForModdedFacts(__instance); RumorModeBuilder.GenerateEntryData(__instance); for (var i = 0; i < __instance._entryList.Count; i++)