mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-06 01:00:16 +00:00
25 lines
745 B
C#
25 lines
745 B
C#
using HarmonyLib;
|
|
using QSB.Patches;
|
|
|
|
namespace QSB.QuantumSync.Patches;
|
|
|
|
[HarmonyPatch]
|
|
public class ClientQuantumPatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
|
|
|
|
[HarmonyPostfix]
|
|
[HarmonyPatch(typeof(QuantumMoon), nameof(QuantumMoon.Start))]
|
|
public static void QuantumMoon_Start(QuantumMoon __instance)
|
|
=> __instance.SetSurfaceState(-1);
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(QuantumMoon), nameof(QuantumMoon.ChangeQuantumState))]
|
|
public static bool QuantumMoon_ChangeQuantumState()
|
|
=> false;
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch(typeof(EyeProxyQuantumMoon), nameof(EyeProxyQuantumMoon.ChangeQuantumState))]
|
|
public static bool EyeProxyQuantumMoon_ChangeQuantumState()
|
|
=> false;
|
|
} |