mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-23 02:25:19 +01:00
Read any remaining bytes, not sure if this fixes any errors but we ideally should to prevent issues.
This commit is contained in:
parent
caae4e4cca
commit
d7b7c4916a
@ -31,6 +31,7 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
|||||||
ByteBuf newPacket = ctx.alloc().buffer();
|
ByteBuf newPacket = ctx.alloc().buffer();
|
||||||
try {
|
try {
|
||||||
incomingTransformer.transform(id, bytebuf, newPacket);
|
incomingTransformer.transform(id, bytebuf, newPacket);
|
||||||
|
bytebuf.readBytes(bytebuf.readableBytes());
|
||||||
bytebuf = newPacket;
|
bytebuf = newPacket;
|
||||||
} catch (CancelException e) {
|
} catch (CancelException e) {
|
||||||
bytebuf.readBytes(bytebuf.readableBytes());
|
bytebuf.readBytes(bytebuf.readableBytes());
|
||||||
|
Loading…
Reference in New Issue
Block a user