From 98876d00a0e235fc93dc6c1a44f91c045d8bdc75 Mon Sep 17 00:00:00 2001 From: RedBigz Date: Thu, 26 Dec 2024 11:36:49 +1000 Subject: [PATCH] Disable kicks based on malformed packets in NetworkEventPatch.cs for ControllerMotion --- TABGVR.Server/Patches/NetworkEventPatch.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/TABGVR.Server/Patches/NetworkEventPatch.cs b/TABGVR.Server/Patches/NetworkEventPatch.cs index e73cd18..14edbf8 100644 --- a/TABGVR.Server/Patches/NetworkEventPatch.cs +++ b/TABGVR.Server/Patches/NetworkEventPatch.cs @@ -35,13 +35,13 @@ public static bool Prefix(ServerClient __instance, ServerPackage networkEvent) return false; } - if (networkEvent.Buffer.Length != - sizeof(float) * 3 * 6) // drop malformed packets and kick the responsible player - { - PlayerKickCommand.Run(player, - __instance, KickReason.Invalid); - return false; - } + // if (networkEvent.Buffer.Length != + // sizeof(float) * 3 * 6) // drop malformed packets and kick the responsible player + // { + // PlayerKickCommand.Run(player, + // __instance, KickReason.Invalid); + // return false; + // } byte[] message = [player.PlayerIndex, ..networkEvent.Buffer];