add debug log
This commit is contained in:
@@ -7,11 +7,14 @@ package mc.core.netty.proto_125;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.MessageToByteEncoder;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import mc.core.SCPacket;
|
||||
|
||||
@Slf4j
|
||||
public class PacketEncoder extends MessageToByteEncoder<SCPacket> {
|
||||
@Override
|
||||
protected void encode(ChannelHandlerContext ctx, SCPacket pkt, ByteBuf out) throws Exception {
|
||||
log.debug("{}: {}", pkt.getClass().getSimpleName(), pkt.toString());
|
||||
Integer id = PacketManager.getServirSidePacket(pkt.getClass());
|
||||
byte[] bytes = pkt.toByteArray();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user