mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
Slightly more accurate natives check
This commit is contained in:
@@ -67,7 +67,7 @@ public class JavaVelocityCipher implements VelocityCipher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static ByteBuf toHeap(ByteBuf src) {
|
private static ByteBuf toHeap(ByteBuf src) {
|
||||||
if (!src.isDirect()) {
|
if (src.hasArray()) {
|
||||||
return src.retain();
|
return src.retain();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user