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 +}