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

23 lines
632 B
C#

using HarmonyLib;
namespace NewHorizons.Patches.ShipLogPatches
{
[HarmonyPatch(typeof(ShipLogSandFunnel))]
public static class ShipLogSandFunnelPatches
{
[HarmonyPrefix]
[HarmonyPatch(nameof(ShipLogSandFunnel.UpdateState))]
public static bool ShipLogSandFunnel_UpdateState()
{
return Main.Instance.CurrentStarSystem == "SolarSystem";
}
[HarmonyPrefix]
[HarmonyPatch(nameof(ShipLogSandFunnel.Awake))]
public static bool ShipLogSandFunnel_Awake()
{
return Main.Instance.CurrentStarSystem == "SolarSystem";
}
}
}