mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-02-11 15:29:30 +08:00
Slightly more accurate natives check
This commit is contained in:
parent
35856fec04
commit
3a77068088
@ -67,7 +67,7 @@ public class JavaVelocityCipher implements VelocityCipher {
|
||||
}
|
||||
|
||||
private static ByteBuf toHeap(ByteBuf src) {
|
||||
if (!src.isDirect()) {
|
||||
if (src.hasArray()) {
|
||||
return src.retain();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user