mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-23 04:54:59 +02:00
Fix online mode
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
23d59cb135
commit
f86d91f9b8
|
@ -235,7 +235,7 @@ public class PlayerSocketConnection extends PlayerConnection {
|
|||
if (encrypted) { // Encryption support
|
||||
ByteBuffer output = PacketUtils.localBuffer();
|
||||
try {
|
||||
this.encryptCipher.update(buffer, output);
|
||||
this.encryptCipher.update(buffer.duplicate(), output);
|
||||
buffer = output.flip();
|
||||
} catch (ShortBufferException e) {
|
||||
MinecraftServer.getExceptionManager().handleException(e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user