Further increase length limit for TO_CLIENT chat packets

This commit is contained in:
md_5 2021-05-26 10:31:08 +10:00
parent 7ec1f487c1
commit ab9153ddc3
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -40,7 +40,7 @@ public class Chat extends DefinedPacket
@Override
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
{
message = readString( buf, ( direction == ProtocolConstants.Direction.TO_CLIENT ) ? Short.MAX_VALUE : 256 );
message = readString( buf, ( direction == ProtocolConstants.Direction.TO_CLIENT ) ? 262144 : 256 );
if ( direction == ProtocolConstants.Direction.TO_CLIENT )
{
position = buf.readByte();