mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-03 00:59:39 +01:00
23 lines
899 B
Diff
23 lines
899 B
Diff
From 3032acddf93d4669da3bf3b8c3c926994517e693 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 servers 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..3e4ea192 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 );
|
|
+ cursor = readString( buf , 32500); // Waterfall
|
|
|
|
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
|
{
|
|
--
|
|
2.27.0
|
|
|