Moved code

This commit is contained in:
RaphiMC 2024-06-09 19:11:00 +02:00
parent 0677494afa
commit b8ca24a81c
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

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