mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-21 11:55:15 +01:00
try to fix compression
This commit is contained in:
parent
eaefef295f
commit
e3295abc6d
@ -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()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user