Fixed netty pipeline

This commit is contained in:
FlorianMichael 2023-04-04 02:30:07 +02:00
parent 4fcba4bca8
commit 679495bb0e

View File

@ -77,11 +77,11 @@ public class PipelineInjector {
user.getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE);
channel.pipeline().addBefore("splitter", PreNettyConstants.VIA_LEGACY_CODEC_NAME, new ViaFabricPlusPreNettyLengthCodec(user));
// MC Pipeline doesn't like codecs
channel.pipeline().remove("prepender");
channel.pipeline().addAfter("splitter", "prepender", new SizePrepender());
}
// MC Pipeline doesn't like codecs
channel.pipeline().remove("prepender");
channel.pipeline().addAfter("splitter", "prepender", new SizePrepender());
}
/**