try fixing EOF on ClientClick (#1490)

This commit is contained in:
Huynh Tien 2022-10-29 17:06:18 +07:00 committed by GitHub
parent 993af51556
commit 01e2c43b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,12 @@ final class NetworkBufferTypes {
nbtReader = new NBTReader(new InputStream() { nbtReader = new NBTReader(new InputStream() {
@Override @Override
public int read() { public int read() {
return buffer.read(BYTE); return buffer.read(BYTE) & 0xFF;
}
@Override
public int available() {
return buffer.readableBytes();
} }
}, CompressedProcesser.NONE); }, CompressedProcesser.NONE);
buffer.nbtReader = nbtReader; buffer.nbtReader = nbtReader;