mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-12 03:39:45 +00:00
18 lines
764 B
C#
18 lines
764 B
C#
using QSB.Patches;
|
|
|
|
namespace QSB.QuantumSync.Patches
|
|
{
|
|
public class ClientQuantumStateChangePatches : QSBPatch
|
|
{
|
|
public override QSBPatchTypes Type => QSBPatchTypes.OnNonServerClientConnect;
|
|
|
|
public override void DoPatches()
|
|
{
|
|
QSBCore.Helper.HarmonyHelper.AddPrefix<SocketedQuantumObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), nameof(ReturnFalsePatch));
|
|
QSBCore.Helper.HarmonyHelper.AddPrefix<MultiStateQuantumObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), nameof(ReturnFalsePatch));
|
|
QSBCore.Helper.HarmonyHelper.AddPrefix<QuantumShuffleObject>("ChangeQuantumState", typeof(ClientQuantumStateChangePatches), nameof(ReturnFalsePatch));
|
|
}
|
|
|
|
public static bool ReturnFalsePatch() => false;
|
|
}
|
|
} |