mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
remove some debug
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user