mirror of
https://github.com/ViaVersion/ViaFabricPlus.git
synced 2024-11-15 10:45:35 +01:00
updated VLB
This commit is contained in:
parent
9b3a2bc7e9
commit
597d57b50f
@ -14,7 +14,7 @@ maven_group=de.florianmichael
|
||||
archives_base_name=viafabricplus
|
||||
|
||||
# base lib
|
||||
vialoadingbase_version=ff86e681d7
|
||||
vialoadingbase_version=4.4.8
|
||||
raknet_transport_version=1.0.0.CR1-SNAPSHOT
|
||||
classic4j_version=1.2.0
|
||||
|
||||
|
@ -77,15 +77,15 @@ public class ViaFabricPlusVLBPipeline extends VLBPipeline {
|
||||
|
||||
// ViaLegacy
|
||||
if (this.version.isOlderThanOrEqualTo(LegacyProtocolVersion.r1_6_4)) {
|
||||
getInfo().getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE);
|
||||
getUser().getProtocolInfo().getPipeline().add(PreNettyBaseProtocol.INSTANCE);
|
||||
|
||||
pipeline.addBefore("splitter", VIA_LEGACY_DECODER_HANDLER_NAME, new PreNettyLengthPrepender(getInfo()));
|
||||
pipeline.addBefore("prepender", VIA_LEGACY_ENCODER_HANDLER_NAME, new PreNettyLengthRemover(getInfo()));
|
||||
pipeline.addBefore("splitter", VIA_LEGACY_DECODER_HANDLER_NAME, new PreNettyLengthPrepender(getUser()));
|
||||
pipeline.addBefore("prepender", VIA_LEGACY_ENCODER_HANDLER_NAME, new PreNettyLengthRemover(getUser()));
|
||||
}
|
||||
|
||||
// ViaBedrock
|
||||
if (this.version.isEqualTo(BedrockProtocolVersion.bedrockLatest)) {
|
||||
getInfo().getProtocolInfo().getPipeline().add(BedrockBaseProtocol.INSTANCE);
|
||||
getUser().getProtocolInfo().getPipeline().add(BedrockBaseProtocol.INSTANCE);
|
||||
|
||||
pipeline.replace("splitter", VIA_BEDROCK_BATCH_LENGTH_HANDLER_NAME, new BatchLengthCodec());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user