13
0
geforkt von Mirrors/Velocity

Clarify error message

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-06-12 00:43:30 -04:00
Ursprung 5fa5d9567d
Commit cc6d060fc5

Datei anzeigen

@ -33,7 +33,7 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder<ByteBuf> {
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);