From 81b118a8ba1598882d712a9b878dbd2f649a3b28 Mon Sep 17 00:00:00 2001 From: Outfluencer Date: Sun, 17 Nov 2024 11:44:17 +1100 Subject: [PATCH] #3759: Remove unnecessary protocol version check for UnsignedClientCommand --- .../net/md_5/bungee/protocol/packet/UnsignedClientCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/UnsignedClientCommand.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/UnsignedClientCommand.java index 5ee93eaf2..750eb1803 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/UnsignedClientCommand.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/UnsignedClientCommand.java @@ -21,7 +21,7 @@ public class UnsignedClientCommand extends DefinedPacket @Override public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion) { - command = readString( buf, ( protocolVersion >= ProtocolConstants.MINECRAFT_1_20_5 ) ? 32767 : 256 ); + command = readString( buf ); } @Override