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