diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftDecoder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftDecoder.java index 4e05b3647..07ddb287f 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftDecoder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftDecoder.java @@ -38,11 +38,11 @@ public class MinecraftDecoder extends MessageToMessageDecoder { packet.decode(msg, direction, protocolVersion.id); } catch (Exception e) { throw new CorruptedFrameException("Error decoding " + packet.getClass() + " Direction " + direction - + " Protocol " + protocolVersion + " State " + state + " ID " + Integer.toHexString(packetId), e); + + " Protocol " + protocolVersion.id + " State " + state + " ID " + Integer.toHexString(packetId), e); } if (msg.isReadable()) { throw new CorruptedFrameException("Did not read full packet for " + packet.getClass() + " Direction " + direction - + " Protocol " + protocolVersion + " State " + state + " ID " + Integer.toHexString(packetId)); + + " Protocol " + protocolVersion.id + " State " + state + " ID " + Integer.toHexString(packetId)); } out.add(packet); }