From 98f8417371b669a9504c8e454893273bb4737fab Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Mon, 27 Dec 2021 19:49:20 -0300 Subject: [PATCH] move button, accept compression under threshold --- src/main/java/com/viaversion/aas/codec/CompressionCodec.java | 4 +--- src/main/resources/web/index.html | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/viaversion/aas/codec/CompressionCodec.java b/src/main/java/com/viaversion/aas/codec/CompressionCodec.java index 7ed82da..cc87fdb 100644 --- a/src/main/java/com/viaversion/aas/codec/CompressionCodec.java +++ b/src/main/java/com/viaversion/aas/codec/CompressionCodec.java @@ -113,9 +113,7 @@ public class CompressionCodec extends MessageToMessageCodec { return; } - if (claimedUncompressedSize < threshold) { - throw new DecoderException("Badly compressed packet - size of " + claimedUncompressedSize + " is below server threshold of " + threshold); - } + // 1.18 clients now accept compressed packets under threshold...? if (claimedUncompressedSize > UNCOMPRESSED_CAP) { throw new DecoderException("Badly compressed packet - size of " + claimedUncompressedSize + " is larger than maximum of " + UNCOMPRESSED_CAP); } diff --git a/src/main/resources/web/index.html b/src/main/resources/web/index.html index f9e0902..cb6485e 100644 --- a/src/main/resources/web/index.html +++ b/src/main/resources/web/index.html @@ -91,7 +91,6 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.

Listening to frontend logins from:

- @@ -114,6 +113,9 @@ script-src 'self' https://*.cloudflare.com/ https://alcdn.msauth.net/ https://*.
+
+ +