mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-04 01:30:25 +01:00
Try using out.writerIndex instead of readerIndex
This commit is contained in:
parent
9edcda7ace
commit
f9f664f9b6
@ -43,7 +43,7 @@ public class CipherCodec extends ByteToByteCodec
|
||||
{
|
||||
out.capacity( outputSize );
|
||||
}
|
||||
int processed = cipher.update( in.nioBuffer(), out.nioBuffer( out.readerIndex(), outputSize ) );
|
||||
int processed = cipher.update( in.nioBuffer(), out.nioBuffer( out.writerIndex(), outputSize ) );
|
||||
in.readerIndex( in.readerIndex() + processed );
|
||||
out.writerIndex( out.writerIndex() + processed );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user