3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-20 06:50:08 +01:00
Dieser Commit ist enthalten in:
creeper123123321 2020-06-30 16:31:42 -03:00 committet von Five (Xer)
Ursprung 485f4fa070
Commit bcb76350a1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: A3F306B10E6330E7

Datei anzeigen

@ -34,14 +34,14 @@ public class VelocityDecodeHandler extends MessageToMessageDecoder<ByteBuf> {
ByteBuf transformedBuf = ctx.alloc().buffer().writeBytes(bytebuf);
try {
boolean needsCompress = handleCompressionOrder(ctx, bytebuf);
boolean needsCompress = handleCompressionOrder(ctx, transformedBuf);
info.transformIncoming(bytebuf, CancelDecoderException::generate);
info.transformIncoming(transformedBuf, CancelDecoderException::generate);
if (needsCompress) {
recompress(ctx, bytebuf);
recompress(ctx, transformedBuf);
}
out.add(bytebuf.retain());
out.add(transformedBuf.retain());
} finally {
transformedBuf.release();
}