From 5116fd6c69bf0e241d82c714d65fa35067ccdd0c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 14 Mar 2023 22:47:15 +0100 Subject: [PATCH] Fix 1.19.4 Chat validation --- .../src/de/steamwar/network/handlers/ServerDataHandler.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/network/handlers/ServerDataHandler.java b/SpigotCore_Main/src/de/steamwar/network/handlers/ServerDataHandler.java index 86da445..de5615b 100644 --- a/SpigotCore_Main/src/de/steamwar/network/handlers/ServerDataHandler.java +++ b/SpigotCore_Main/src/de/steamwar/network/handlers/ServerDataHandler.java @@ -5,9 +5,8 @@ import com.comphenix.tinyprotocol.TinyProtocol; public class ServerDataHandler { - private Class serverDataPacket = Reflection.getClass("{nms.network.protocol.game}.ClientboundServerDataPacket"); - public ServerDataHandler() { - TinyProtocol.instance.addFilter(serverDataPacket, (p, o) -> null); + TinyProtocol.instance.addFilter(Reflection.getClass("{nms.network.protocol.game}.ClientboundServerDataPacket"), (p, o) -> null); + TinyProtocol.instance.addFilter(Reflection.getClass("{nms.network.protocol.game}.ServerboundChatSessionUpdatePacket"), (player, packet) -> null); } }