From 45adcb457ff4cf6a27ac688b43f2ca866592edff Mon Sep 17 00:00:00 2001 From: "Nick J. Connors" Date: Mon, 7 Feb 2022 23:00:21 -0500 Subject: [PATCH] Allow targeting off the plane --- NewHorizons/Tools/Patches.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/NewHorizons/Tools/Patches.cs b/NewHorizons/Tools/Patches.cs index 7d9f5007..55846fb2 100644 --- a/NewHorizons/Tools/Patches.cs +++ b/NewHorizons/Tools/Patches.cs @@ -62,6 +62,7 @@ namespace NewHorizons.Tools // Postfixes Main.Instance.ModHelper.HarmonyHelper.AddPostfix("Awake", typeof(Patches), nameof(Patches.OnMapControllerAwake)); + Main.Instance.ModHelper.HarmonyHelper.AddPostfix("OnTargetReferenceFrame", typeof(Patches), nameof(Patches.OnMapControllerOnTargetReferenceFrame)); } public static bool GetHUDDisplayName(ReferenceFrame __instance, ref string __result) @@ -371,5 +372,10 @@ namespace NewHorizons.Tools } return true; } + + public static void OnMapControllerOnTargetReferenceFrame(MapController __instance, ReferenceFrame __0) + { + __instance._isLockedOntoMapSatellite = true; + } } }