#3094: Fix TO_CLIENT max Chat string length
This commit is contained in:
parent
e5ded9a2fb
commit
c96628b72e
@ -40,7 +40,7 @@ public class Chat extends DefinedPacket
|
||||
@Override
|
||||
public void read(ByteBuf buf, ProtocolConstants.Direction direction, int protocolVersion)
|
||||
{
|
||||
message = readString( buf, 256 );
|
||||
message = readString( buf, ( direction == ProtocolConstants.Direction.TO_CLIENT ) ? Short.MAX_VALUE : 256 );
|
||||
if ( direction == ProtocolConstants.Direction.TO_CLIENT )
|
||||
{
|
||||
position = buf.readByte();
|
||||
|
Loading…
Reference in New Issue
Block a user