new-horizons/NewHorizons/Patches/ToolPatches/ProbeLauncherPatches.cs
2023-03-18 13:30:22 -04:00

16 lines
479 B
C#

using HarmonyLib;
namespace NewHorizons.Patches.ToolPatches
{
[HarmonyPatch(typeof(ProbeLauncher))]
public static class ProbeLauncherPatches
{
[HarmonyPrefix]
[HarmonyPatch(nameof(ProbeLauncher.UpdateOrbitalLaunchValues))]
public static bool ProbeLauncher_UpdateOrbitalLaunchValues(ProbeLauncher __instance)
{
return Locator.GetPlayerRulesetDetector()?.GetPlanetoidRuleset()?.GetGravityVolume() != null;
}
}
}