Ensure we have the capacity to resize the buffer
This commit is contained in:
parent
13d679e7d7
commit
49f4dcb5b7
@ -132,6 +132,7 @@ public class EntityMap
|
|||||||
} else if ( newId != 0 && readId == 0 )
|
} else if ( newId != 0 && readId == 0 )
|
||||||
{ // Add on the extra data
|
{ // Add on the extra data
|
||||||
packet.readerIndex( readerIndex );
|
packet.readerIndex( readerIndex );
|
||||||
|
packet.capacity( packet.readableBytes() + 6 );
|
||||||
packet.writerIndex( packet.readableBytes() + 6 );
|
packet.writerIndex( packet.readableBytes() + 6 );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user