Allow targeting off the plane

This commit is contained in:
Nick J. Connors 2022-02-07 23:00:21 -05:00
parent 781570c662
commit 45adcb457f

View File

@ -62,6 +62,7 @@ namespace NewHorizons.Tools
// Postfixes
Main.Instance.ModHelper.HarmonyHelper.AddPostfix<MapController>("Awake", typeof(Patches), nameof(Patches.OnMapControllerAwake));
Main.Instance.ModHelper.HarmonyHelper.AddPostfix<MapController>("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;
}
}
}