From fa88aaae5240a3b4940edd851790c3a0a71e9a32 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 21 Jun 2024 12:48:58 +0200 Subject: [PATCH] Always unsign chat. --- .../proxy/protocol/packet/chat/keyed/KeyedPlayerChatPacket.java | 2 ++ .../protocol/packet/chat/session/SessionPlayerChatPacket.java | 1 + 2 files changed, 3 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/keyed/KeyedPlayerChatPacket.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/keyed/KeyedPlayerChatPacket.java index 74fa88f5a..5d829f6a7 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/keyed/KeyedPlayerChatPacket.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/keyed/KeyedPlayerChatPacket.java @@ -116,6 +116,8 @@ public class KeyedPlayerChatPacket implements MinecraftPacket { ProtocolUtils.readByteArray(buf)); } } + + unsigned = true; } @Override diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/session/SessionPlayerChatPacket.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/session/SessionPlayerChatPacket.java index c49170fd9..03c47fec6 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/session/SessionPlayerChatPacket.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/packet/chat/session/SessionPlayerChatPacket.java @@ -69,6 +69,7 @@ public class SessionPlayerChatPacket implements MinecraftPacket { this.salt = buf.readLong(); this.signed = buf.readBoolean(); if (this.signed) { + this.signed = false; this.signature = readMessageSignature(buf); } else { this.signature = new byte[0];