mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
16 lines
567 B
C#
16 lines
567 B
C#
using HarmonyLib;
|
|
|
|
namespace NewHorizons.Patches.MapPatches
|
|
{
|
|
[HarmonyPatch(typeof(ReferenceFrameTracker))]
|
|
public static class ReferenceFrameTrackerPatches
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(nameof(ReferenceFrameTracker.UntargetReferenceFrame), new System.Type[] { typeof(bool) })]
|
|
public static bool ReferenceFrameTracker_UntargetReferenceFrame(ReferenceFrameTracker __instance, bool playAudio)
|
|
{
|
|
return __instance != null && __instance._hasTarget && __instance._currentReferenceFrame != null;
|
|
}
|
|
}
|
|
}
|