mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-27 20:59:12 +01:00
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 )
|
||||
{ // Add on the extra data
|
||||
packet.readerIndex( readerIndex );
|
||||
packet.capacity( packet.readableBytes() + 6 );
|
||||
packet.writerIndex( packet.readableBytes() + 6 );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user