From cc6d060fc5cac874ea37f07605000b684c1ecbad Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Wed, 12 Jun 2019 00:43:30 -0400 Subject: [PATCH] Clarify error message --- .../proxy/protocol/netty/MinecraftCompressDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java index 56af37e65..358d8154e 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/protocol/netty/MinecraftCompressDecoder.java @@ -33,7 +33,7 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder { return; } - checkFrame(expectedSize >= threshold, "Uncompressed size %s is greater than threshold %s", + checkFrame(expectedSize >= threshold, "Uncompressed size %s is less than threshold %s", expectedSize, threshold); checkFrame(expectedSize <= MAXIMUM_UNCOMPRESSED_SIZE, "Expected uncompressed size" + "%s is larger than protocol maximum of %s", expectedSize, MAXIMUM_UNCOMPRESSED_SIZE);