diff --git a/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java b/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java index a9a0267f3..b6a27a7c8 100644 --- a/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java +++ b/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java @@ -51,6 +51,7 @@ public class NativeVelocityCipher implements VelocityCipher { @Override public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException { ensureNotDisposed(); + source.memoryAddress(); // sanity check int len = source.readableBytes(); ByteBuf out = ctx.alloc().directBuffer(len);