Upload files to "Patches"
This commit is contained in:
1 parent
07baed88f8
commit
f1a53b1283
4 files changed
+149
No files matched your search
@@ -0,0 +1,20 @@
|
||||
using HarmonyLib;
|
||||
|
||||
namespace FortniteEmoteWheel.Patches;
|
||||
|
||||
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