diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java b/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java index 4ecb7a4e..1c6476fe 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/MinecraftDecoder.java @@ -32,8 +32,11 @@ public class MinecraftDecoder extends ByteToMessageDecoder if ( in.readableBytes() != 0 ) { System.out.println( in.toString( Charsets.UTF_8 ) ); - // throw new BadPacketException( "Did not read all bytes from packet " + packet.getClass() + " " + packetId + " Protocol " + protocol + " Direction " + prot ); + // throw new BadPacketException( "Did not read all bytes from packet " + packet.getClass() + " " + packetId + " Protocol " + protocol + " Direction " + prot ); } + } else + { + in.skipBytes( in.readableBytes() ); } out.add( new PacketWrapper( packet, copy ) );