quantum-space-buddies/QSB/Inputs/Patches/InputPatches.cs
2022-03-02 19:46:33 -08:00

15 lines
356 B
C#

using HarmonyLib;
using QSB.Patches;
namespace QSB.Inputs.Patches;
[HarmonyPatch]
internal class InputPatches : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
[HarmonyPrefix]
[HarmonyPatch(typeof(OWInput), nameof(OWInput.Update))]
public static bool OWInput_Update()
=> QSBInputManager.Instance.InputsEnabled;
}