mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-20 20:22:39 +00:00
Renamed a class.
This commit is contained in:
1 parent
f32a771e6b
commit
572d0158cb
2 files changed
+2
-4
No files matched your search
@@ -40,7 +40,7 @@ public class RConServer implements Runnable {
|
||||
class ChannelInit extends ChannelInitializer<SocketChannel>{
|
||||
@Override
|
||||
protected void initChannel(SocketChannel ch) throws Exception {
|
||||
ch.pipeline().addLast(new RconMsgColater(), new RConInboundHandler());
|
||||
ch.pipeline().addLast(new RconMsgDecoder(), new RConInboundHandler());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,8 +102,6 @@ public class RConServer implements Runnable {
|
||||
buf.writeBytes(data);
|
||||
ctx.write(buf);
|
||||
ctx.flush();
|
||||
|
||||
modOpis.log.info(String.format("%s", data.length));
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -10,7 +10,7 @@ import io.netty.buffer.ByteBuf;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.ByteToMessageDecoder;
|
||||
|
||||
public class RconMsgColater extends ByteToMessageDecoder {
|
||||
public class RconMsgDecoder extends ByteToMessageDecoder {
|
||||
|
||||
@Override
|
||||
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception {
|
||||
Reference in new issue
Block a user