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);
|
throw handleDecodeFailure(e, codec, packetId);
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println(packet);
|
|
||||||
|
|
||||||
if (buf.isReadable()) {
|
if (buf.isReadable()) {
|
||||||
throw handleOverflow(packet, buf.readerIndex(), buf.writerIndex());
|
throw handleOverflow(packet, buf.readerIndex(), buf.writerIndex());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ public class MinecraftEncoder extends MessageToByteEncoder<MinecraftPacket> {
|
|||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected void encode(ChannelHandlerContext ctx, MinecraftPacket msg, ByteBuf out) {
|
protected void encode(ChannelHandlerContext ctx, MinecraftPacket msg, ByteBuf out) {
|
||||||
PacketCodec<MinecraftPacket> codec = (PacketCodec<MinecraftPacket>) this.registry.getCodec(msg.getClass());
|
PacketCodec<MinecraftPacket> codec = (PacketCodec<MinecraftPacket>) this.registry.getCodec(msg.getClass());
|
||||||
System.out.println(msg);
|
|
||||||
if (codec == null) {
|
if (codec == null) {
|
||||||
throw new IllegalArgumentException("No codec found for packet: " + msg.getClass());
|
throw new IllegalArgumentException("No codec found for packet: " + msg.getClass());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user