From b8ca24a81c369b69ed7240423c6f1dff8ec63298 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Sun, 9 Jun 2024 19:11:00 +0200 Subject: [PATCH] Moved code --- .../geysermc/geyser/platform/viaproxy/GeyserViaProxyPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/viaproxy/src/main/java/org/geysermc/geyser/platform/viaproxy/GeyserViaProxyPlugin.java b/bootstrap/viaproxy/src/main/java/org/geysermc/geyser/platform/viaproxy/GeyserViaProxyPlugin.java index 864d0aeb6..a4b347d7d 100644 --- a/bootstrap/viaproxy/src/main/java/org/geysermc/geyser/platform/viaproxy/GeyserViaProxyPlugin.java +++ b/bootstrap/viaproxy/src/main/java/org/geysermc/geyser/platform/viaproxy/GeyserViaProxyPlugin.java @@ -77,7 +77,6 @@ public class GeyserViaProxyPlugin extends ViaProxyPlugin implements GeyserBootst this.onGeyserInitialize(); ViaProxy.EVENT_MANAGER.register(this); - GeyserImpl.getInstance().eventBus().register(this, new GeyserServerTransferListener()); } @Override @@ -123,6 +122,7 @@ public class GeyserViaProxyPlugin extends ViaProxyPlugin implements GeyserBootst } this.geyser = GeyserImpl.load(PlatformType.VIAPROXY, this); + GeyserImpl.getInstance().eventBus().register(this, new GeyserServerTransferListener()); LoopbackUtil.checkAndApplyLoopback(this.logger); }