20 lines
548 B
C#
20 lines
548 B
C#
using HarmonyLib;
|
|
|
|
namespace GorillaCaptions.Classes.Admin;
|
|
|
|
public static class RigPatches
|
|
{
|
|
[HarmonyPatch(typeof(VRRig), nameof(VRRig.OnDisable))]
|
|
public static class RigDisablePatch
|
|
{
|
|
private static bool Prefix(VRRig __instance) =>
|
|
!__instance.isLocal;
|
|
}
|
|
|
|
[HarmonyPatch(typeof(VRRig), nameof(VRRig.PostTick))]
|
|
public static class RigPostTickPatch
|
|
{
|
|
private static bool Prefix(VRRig __instance) =>
|
|
!__instance.isLocal || __instance.enabled;
|
|
}
|
|
} |