#3094: Fix TO_CLIENT max Chat string length
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 md_5
					md_5