mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
16 lines
479 B
C#
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;
|
|
}
|
|
}
|
|
}
|