try to fix compression

This commit is contained in:
creeper123123321 2020-08-16 18:00:00 -03:00
parent eaefef295f
commit e3295abc6d

View File

@ -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()
}
}