fix mixin in 1.18

This commit is contained in:
creeper123123321 2021-09-18 19:56:39 -03:00
parent 0a21312bc2
commit a93d08e549

View File

@ -32,8 +32,8 @@ public class MixinClientConnection {
}
}
@Inject(method = "method_10760", at = @At("RETURN"))
private void reorderCompression(int compressionThreshold, CallbackInfo ci) {
@Inject(method = "setCompressionThreshold", at = @At("RETURN"))
private void reorderCompression(int compressionThreshold, boolean rejectBad, CallbackInfo ci) {
channel.pipeline().fireUserEventTriggered(new PipelineReorderEvent());
}
}