mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
16 lines
367 B
C#
16 lines
367 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;
|
|
}
|
|
} |