Use non deprecated API

This commit is contained in:
RaphiMC 2023-04-08 19:36:47 +02:00
parent f840a002e7
commit c01cb7b3e0

View File

@ -76,7 +76,7 @@ public class EaglercraftHandler extends MessageToMessageCodec<WebSocketFrame, By
@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
ctx.attr(MCPipeline.COMPRESSION_THRESHOLD_ATTRIBUTE_KEY).set(-2); // Disable automatic compression in Proxy2ServerHandler
ctx.channel().attr(MCPipeline.COMPRESSION_THRESHOLD_ATTRIBUTE_KEY).set(-2); // Disable automatic compression in Proxy2ServerHandler
ctx.pipeline().remove(MCPipeline.SIZER_HANDLER_NAME);
super.channelActive(ctx);
}