Use vanilla maximum for tab completion packets (Fixes #512)

This commit is contained in:
Shane Freeder 2020-06-18 23:41:40 +01:00
parent 717477afec
commit 33c73f9d3d
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
From 2a8a64e7e53e5c6784f65274ca35900bb47ed622 Mon Sep 17 00:00:00 2001
From 653b8a86c263370322691c8860b882521e505ad5 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Sat, 9 May 2020 21:40:23 -0400
Subject: [PATCH] Cap tab complete packets to clients max
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 d6865ae2..fca4c5d2 100644
index d6865ae2..27b232dc 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
@ -13,10 +13,10 @@ index d6865ae2..fca4c5d2 100644
transactionId = readVarInt( buf );
}
- cursor = readString( buf );
+ cursor = readString( buf , 256); // Waterfall
+ cursor = readString( buf , 2048); // Waterfall
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
{
--
2.26.2
2.27.0