Upload files to "Classes/Admin"
This commit is contained in:
1 parent
35a1f0d2de
commit
a3289ddec7
6 files changed
+2866
No files matched your search
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user