From d591d0ed291e11772b612c3b247c5b053a5eb037 Mon Sep 17 00:00:00 2001 From: Nathan Poirier Date: Mon, 9 Jul 2018 01:58:00 +0200 Subject: [PATCH] #2451: Fix direction in BadPacketException message --- .../main/java/net/md_5/bungee/protocol/MinecraftDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e7cb38034..ea44573d1 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 @@ -34,7 +34,7 @@ public class MinecraftDecoder extends MessageToMessageDecoder 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 {