Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-24 23:30:15 +01:00
Read any remaining bytes, not sure if this fixes any errors but we ideally should to prevent issues.
Dieser Commit ist enthalten in:
Ursprung
caae4e4cca
Commit
d7b7c4916a
@ -31,6 +31,7 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
||||
ByteBuf newPacket = ctx.alloc().buffer();
|
||||
try {
|
||||
incomingTransformer.transform(id, bytebuf, newPacket);
|
||||
bytebuf.readBytes(bytebuf.readableBytes());
|
||||
bytebuf = newPacket;
|
||||
} catch (CancelException e) {
|
||||
bytebuf.readBytes(bytebuf.readableBytes());
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren