17 lines
368 B
C#
Raw Normal View History

using HarmonyLib;
using QSB.Patches;
2021-06-11 14:34:27 +01:00
namespace QSB.Inputs.Patches
{
[HarmonyPatch]
2021-07-12 22:02:50 +01:00
internal class InputPatches : QSBPatch
2021-06-11 14:34:27 +01:00
{
public override QSBPatchTypes Type => QSBPatchTypes.OnClientConnect;
[HarmonyPrefix]
[HarmonyPatch(typeof(OWInput), nameof(OWInput.Update))]
2021-06-11 14:34:27 +01:00
public static bool OWInput_Update()
=> QSBInputManager.Instance.InputsEnabled;
}
}