30k -> 2mb item size limit.

This commit is contained in:
AlgorithmX2 2014-05-11 11:25:15 -05:00
parent 32f7e58cf0
commit 5771c19146

View file

@ -136,7 +136,7 @@ public class PacketMEInventoryUpdate extends AppEngPacket
is.writeToPacket( tmp );
compressFrame.flush();
if ( writtenBytes + tmp.readableBytes() > 30000 )
if ( writtenBytes + tmp.readableBytes() > 2 * 1024 * 1024 ) // 2mb!
throw new BufferOverflowException();
else
{