#2451: Fix direction in BadPacketException message

This commit is contained in:
Nathan Poirier 2018-07-09 01:58:00 +02:00 committed by md-5
parent 7410ce9077
commit d591d0ed29

View File

@ -34,7 +34,7 @@ public class MinecraftDecoder extends MessageToMessageDecoder<ByteBuf>
if ( in.isReadable() )
{
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.getDirection() );
}
} else
{