mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
try fixing EOF on ClientClick (#1490)
This commit is contained in:
parent
993af51556
commit
01e2c43b5d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user