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
1 changed files with 6 additions and 1 deletions

View File

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