Ensure ViaBackwards init is after ViaVersion on sponge

This commit is contained in:
Myles 2017-10-12 12:16:38 +01:00
parent 903c1999eb
commit 7fbd546d43

View File

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