updated VLB

This commit is contained in:
FlorianMichael 2023-04-23 03:24:57 +02:00
parent 9b3a2bc7e9
commit 597d57b50f
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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());