diff --git a/native/src/main/java/com/velocitypowered/natives/encryption/JavaVelocityCipher.java b/native/src/main/java/com/velocitypowered/natives/encryption/JavaVelocityCipher.java index 88f7fa921..5382da898 100644 --- a/native/src/main/java/com/velocitypowered/natives/encryption/JavaVelocityCipher.java +++ b/native/src/main/java/com/velocitypowered/natives/encryption/JavaVelocityCipher.java @@ -67,7 +67,7 @@ public class JavaVelocityCipher implements VelocityCipher { } private static ByteBuf toHeap(ByteBuf src) { - if (!src.isDirect()) { + if (src.hasArray()) { return src.retain(); }