From e3295abc6d763abc2f97c99bbc5a566f5482495b Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sun, 16 Aug 2020 18:00:00 -0300 Subject: [PATCH] try to fix compression --- .../com/github/creeper123123321/viaaas/CloudProtocol.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/github/creeper123123321/viaaas/CloudProtocol.kt b/src/main/kotlin/com/github/creeper123123321/viaaas/CloudProtocol.kt index 6ff9649..c9d06a6 100644 --- a/src/main/kotlin/com/github/creeper123123321/viaaas/CloudProtocol.kt +++ b/src/main/kotlin/com/github/creeper123123321/viaaas/CloudProtocol.kt @@ -138,7 +138,7 @@ class CloudHandlerProtocol : SimpleProtocol() { it.cancel() it.create(3) { it.write(Type.VAR_INT, threshold) - }.send(CloudHandlerProtocol::class.java) + }.send(CloudHandlerProtocol::class.java, true, true) // needs to be sent uncompressed pipe.get(CloudCompressor::class.java).threshold = threshold pipe.get(CloudDecompressor::class.java).threshold = threshold @@ -165,4 +165,4 @@ class CloudHandlerProtocol : SimpleProtocol() { fun Channel.setAutoRead(b: Boolean) { this.config().isAutoRead = b if (b) this.read() -} \ No newline at end of file +}