mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2025-01-12 20:11:03 +01:00
Fixed netty pipeline
This commit is contained in:
parent
4fcba4bca8
commit
679495bb0e
@ -77,12 +77,12 @@ public class PipelineInjector {
|
|||||||
user.getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE);
|
user.getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE);
|
||||||
|
|
||||||
channel.pipeline().addBefore("splitter", PreNettyConstants.VIA_LEGACY_CODEC_NAME, new ViaFabricPlusPreNettyLengthCodec(user));
|
channel.pipeline().addBefore("splitter", PreNettyConstants.VIA_LEGACY_CODEC_NAME, new ViaFabricPlusPreNettyLengthCodec(user));
|
||||||
|
}
|
||||||
|
|
||||||
// MC Pipeline doesn't like codecs
|
// MC Pipeline doesn't like codecs
|
||||||
channel.pipeline().remove("prepender");
|
channel.pipeline().remove("prepender");
|
||||||
channel.pipeline().addAfter("splitter", "prepender", new SizePrepender());
|
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
|
* This method represents the rak net connection for bedrock edition, it's a replacement of the ClientConnection#connect method
|
||||||
|
Loading…
Reference in New Issue
Block a user