From 679495bb0e1371933585356c91d367cd529f5229 Mon Sep 17 00:00:00 2001 From: FlorianMichael <60033407+FlorianMichael@users.noreply.github.com> Date: Tue, 4 Apr 2023 02:30:07 +0200 Subject: [PATCH] Fixed netty pipeline --- .../viafabricplus/protocolhack/PipelineInjector.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/florianmichael/viafabricplus/protocolhack/PipelineInjector.java b/src/main/java/de/florianmichael/viafabricplus/protocolhack/PipelineInjector.java index a6d015ba..52d9d245 100644 --- a/src/main/java/de/florianmichael/viafabricplus/protocolhack/PipelineInjector.java +++ b/src/main/java/de/florianmichael/viafabricplus/protocolhack/PipelineInjector.java @@ -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()); } /**