Ensure we have the capacity to resize the buffer

This commit is contained in:
Thinkofdeath 2014-03-13 19:51:46 +00:00
parent 13d679e7d7
commit 49f4dcb5b7

View File

@ -132,6 +132,7 @@ public class EntityMap
} else if ( newId != 0 && readId == 0 )
{ // Add on the extra data
packet.readerIndex( readerIndex );
packet.capacity( packet.readableBytes() + 6 );
packet.writerIndex( packet.readableBytes() + 6 );
}
}