From b873551a79ee6f0896ec8fbe5b56efece1c07589 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Wed, 19 Apr 2023 15:34:26 +0200 Subject: [PATCH] Fixed legacy ping passthrough not working when eaglercraft support is enabled --- .../proxy/client2proxy/Client2ProxyChannelInitializer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/raphimc/viaproxy/proxy/client2proxy/Client2ProxyChannelInitializer.java b/src/main/java/net/raphimc/viaproxy/proxy/client2proxy/Client2ProxyChannelInitializer.java index e6d455d..f050c42 100644 --- a/src/main/java/net/raphimc/viaproxy/proxy/client2proxy/Client2ProxyChannelInitializer.java +++ b/src/main/java/net/raphimc/viaproxy/proxy/client2proxy/Client2ProxyChannelInitializer.java @@ -55,12 +55,12 @@ public class Client2ProxyChannelInitializer extends MinecraftChannelInitializer return; } - if (Options.ALLOW_EAGLERCRAFT_CLIENTS) { - channel.pipeline().addLast(EAGLERCRAFT_INITIAL_HANDLER_NAME, new EaglercraftInitialHandler()); - } if (Options.LEGACY_CLIENT_PASSTHROUGH) { channel.pipeline().addLast(LEGACY_PASSTHROUGH_HANDLER_NAME, new LegacyClientPassthroughHandler()); } + if (Options.ALLOW_EAGLERCRAFT_CLIENTS) { + channel.pipeline().addLast(EAGLERCRAFT_INITIAL_HANDLER_NAME, new EaglercraftInitialHandler()); + } super.initChannel(channel); channel.attr(MCPipeline.PACKET_REGISTRY_ATTRIBUTE_KEY).set(PacketRegistryUtil.getHandshakeRegistry(false));