2021-10-15 20:06:51 +00:00
|
|
|
|
using HarmonyLib;
|
|
|
|
|
using QSB.Patches;
|
2020-12-22 21:39:53 +00:00
|
|
|
|
|
2020-12-31 12:10:55 +00:00
|
|
|
|
namespace QSB.QuantumSync.Patches
|
2020-12-22 21:39:53 +00:00
|
|
|
|
{
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[HarmonyPatch]
|
2021-01-18 12:33:07 +00:00
|
|
|
|
public class ClientQuantumPatches : QSBPatch
|
2020-12-22 21:39:53 +00:00
|
|
|
|
{
|
|
|
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
|
|
|
|
|
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[HarmonyPostfix]
|
|
|
|
|
[HarmonyPatch(typeof(QuantumMoon), nameof(QuantumMoon.Start))]
|
2021-06-18 20:54:32 +00:00
|
|
|
|
public static void QuantumMoon_Start(QuantumMoon __instance)
|
2021-12-24 15:25:13 +00:00
|
|
|
|
=> __instance.SetSurfaceState(-1);
|
2020-12-22 21:39:53 +00:00
|
|
|
|
|
2021-10-15 20:06:51 +00:00
|
|
|
|
[HarmonyPrefix]
|
|
|
|
|
[HarmonyPatch(typeof(QuantumMoon), nameof(QuantumMoon.ChangeQuantumState))]
|
2021-06-19 10:26:05 +00:00
|
|
|
|
public static bool QuantumMoon_ChangeQuantumState()
|
2021-06-18 20:54:32 +00:00
|
|
|
|
=> false;
|
2021-12-24 15:25:13 +00:00
|
|
|
|
|
|
|
|
|
[HarmonyPrefix]
|
|
|
|
|
[HarmonyPatch(typeof(EyeProxyQuantumMoon), nameof(EyeProxyQuantumMoon.ChangeQuantumState))]
|
|
|
|
|
public static bool EyeProxyQuantumMoon_ChangeQuantumState()
|
|
|
|
|
=> false;
|
2020-12-22 21:39:53 +00:00
|
|
|
|
}
|
2020-12-24 10:06:17 +00:00
|
|
|
|
}
|