diff --git a/proxy/src/main/java/net/md_5/bungee/netty/ByteArrayEncoder.java b/proxy/src/main/java/net/md_5/bungee/netty/ByteArrayEncoder.java deleted file mode 100644 index acc26435..00000000 --- a/proxy/src/main/java/net/md_5/bungee/netty/ByteArrayEncoder.java +++ /dev/null @@ -1,17 +0,0 @@ -package net.md_5.bungee.netty; - -import io.netty.buffer.ByteBuf; -import io.netty.channel.ChannelHandler; -import io.netty.channel.ChannelHandlerContext; -import io.netty.handler.codec.MessageToByteEncoder; - -@ChannelHandler.Sharable -public class ByteArrayEncoder extends MessageToByteEncoder -{ - - @Override - protected void encode(ChannelHandlerContext ctx, byte[] msg, ByteBuf out) throws Exception - { - out.writeBytes( msg ); - } -} diff --git a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java index 6c4a4980..be42aa95 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/PipelineUtils.java @@ -4,6 +4,7 @@ import io.netty.channel.Channel; import io.netty.channel.ChannelException; import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelOption; +import io.netty.handler.codec.bytes.ByteArrayEncoder; import io.netty.handler.timeout.ReadTimeoutHandler; import io.netty.util.AttributeKey; import java.util.concurrent.TimeUnit;