We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cfb2f commit bf95890Copy full SHA for bf95890
NitroxPatcher/Patches/Dynamic/Player_OnPlayerPositionCheat_Patch.cs
@@ -0,0 +1,20 @@
1
+using System.Reflection;
2
+using NitroxClient.GameLogic;
3
+using NitroxModel.DataStructures.Util;
4
+using NitroxModel.Helper;
5
+
6
+namespace NitroxPatcher.Patches.Dynamic;
7
8
+// This method sets the player's subroot to null, so send a packet accordingly
9
+public sealed partial class Player_OnPlayerPositionCheat_Patch : NitroxPatch, IDynamicPatch
10
+{
11
+ private static readonly MethodInfo TARGET_METHOD = Reflect.Method((Player t) => t.OnPlayerPositionCheat());
12
13
+ public static void Prefix(Player __instance)
14
+ {
15
+ if (__instance.GetCurrentSub())
16
17
+ Resolve<LocalPlayer>().BroadcastSubrootChange(Optional.Empty);
18
+ }
19
20
+}
0 commit comments