Fixed netty pipeline

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

View File

@ -77,12 +77,12 @@ 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());
}
}
/**
* This method represents the rak net connection for bedrock edition, it's a replacement of the ClientConnection#connect method