remove some debug

This commit is contained in:
Andrew Steinborn
2025-10-19 16:32:46 -04:00
parent c7b715f8ab
commit b2b8ec8a16
2 changed files with 0 additions and 3 deletions

View File

@@ -90,8 +90,6 @@ public class MinecraftDecoder extends ChannelInboundHandlerAdapter {
throw handleDecodeFailure(e, codec, packetId);
}
System.out.println(packet);
if (buf.isReadable()) {
throw handleOverflow(packet, buf.readerIndex(), buf.writerIndex());
}

View File

@@ -55,7 +55,6 @@ public class MinecraftEncoder extends MessageToByteEncoder<MinecraftPacket> {
@SuppressWarnings("unchecked")
protected void encode(ChannelHandlerContext ctx, MinecraftPacket msg, ByteBuf out) {
PacketCodec<MinecraftPacket> codec = (PacketCodec<MinecraftPacket>) this.registry.getCodec(msg.getClass());
System.out.println(msg);
if (codec == null) {
throw new IllegalArgumentException("No codec found for packet: " + msg.getClass());
}