From a8b2f5268d56e1820bcac11a6aeab82035664a54 Mon Sep 17 00:00:00 2001 From: Outfluencer <48880402+Outfluencer@users.noreply.github.com> Date: Sun, 20 Jun 2021 00:50:39 +0200 Subject: [PATCH] #3123: Apply exact vanilla string length limits for tab completion --- .../net/md_5/bungee/protocol/packet/TabCompleteRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteRequest.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteRequest.java index 88d631cd..80e4f85a 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteRequest.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/TabCompleteRequest.java @@ -41,7 +41,7 @@ public class TabCompleteRequest extends DefinedPacket { transactionId = readVarInt( buf ); } - cursor = readString( buf, 32500 ); + cursor = readString( buf, ( protocolVersion > ProtocolConstants.MINECRAFT_1_13 ? 32500 : ( protocolVersion == ProtocolConstants.MINECRAFT_1_13 ? 256 : 32767 ) ) ); if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 ) {