quantum-space-buddies/QSB/QuantumSync/Patches/ClientQuantumPatches.cs
2021-02-09 17:18:01 +00:00

14 lines
526 B
C#

using QSB.Patches;
namespace QSB.QuantumSync.Patches
{
public class ClientQuantumPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
public override void DoPatches() => QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumMoon>("ChangeQuantumState", typeof(ClientQuantumPatches), nameof(ReturnFalsePatch));
public override void DoUnpatches() => QSBCore.Helper.HarmonyHelper.Unpatch<QuantumMoon>("ChangeQuantumState");
public static bool ReturnFalsePatch() => false;
}
}