#3123: Apply exact vanilla string length limits for tab completion
This commit is contained in:
parent
ad50fc9ad3
commit
a8b2f5268d
@ -41,7 +41,7 @@ public class TabCompleteRequest extends DefinedPacket
|
|||||||
{
|
{
|
||||||
transactionId = readVarInt( buf );
|
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 )
|
if ( protocolVersion < ProtocolConstants.MINECRAFT_1_13 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user