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