mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-12-18 16:17:45 +01:00
Ensure ViaBackwards init is after ViaVersion on sponge
This commit is contained in:
parent
903c1999eb
commit
7fbd546d43
@ -14,6 +14,7 @@ import com.google.inject.Inject;
|
|||||||
import nl.matsv.viabackwards.api.ViaBackwardsPlatform;
|
import nl.matsv.viabackwards.api.ViaBackwardsPlatform;
|
||||||
import nl.matsv.viabackwards.sponge.VersionInfo;
|
import nl.matsv.viabackwards.sponge.VersionInfo;
|
||||||
import org.spongepowered.api.event.Listener;
|
import org.spongepowered.api.event.Listener;
|
||||||
|
import org.spongepowered.api.event.Order;
|
||||||
import org.spongepowered.api.event.game.state.GameAboutToStartServerEvent;
|
import org.spongepowered.api.event.game.state.GameAboutToStartServerEvent;
|
||||||
import org.spongepowered.api.plugin.Dependency;
|
import org.spongepowered.api.plugin.Dependency;
|
||||||
import org.spongepowered.api.plugin.Plugin;
|
import org.spongepowered.api.plugin.Plugin;
|
||||||
@ -34,7 +35,7 @@ public class SpongePlugin implements ViaBackwardsPlatform {
|
|||||||
@Inject
|
@Inject
|
||||||
private PluginContainer container;
|
private PluginContainer container;
|
||||||
|
|
||||||
@Listener
|
@Listener(order = Order.LATE)
|
||||||
public void onServerStart(GameAboutToStartServerEvent e) {
|
public void onServerStart(GameAboutToStartServerEvent e) {
|
||||||
// Setup Logger
|
// Setup Logger
|
||||||
this.logger = new LoggerWrapper(container.getLogger());
|
this.logger = new LoggerWrapper(container.getLogger());
|
||||||
|
Loading…
Reference in New Issue
Block a user