3
0
Mirror von https://github.com/ViaVersion/ViaBackwards.git synchronisiert 2024-11-20 06:50:10 +01:00

Fix mapping loading on Sponge

Fixes #257
Dieser Commit ist enthalten in:
KennyTV 2020-09-02 10:11:36 +02:00
Ursprung c72f8f766d
Commit e9ace2dd6b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -19,6 +19,7 @@ import org.spongepowered.api.event.Order;
import org.spongepowered.api.event.game.state.GameInitializationEvent; import org.spongepowered.api.event.game.state.GameInitializationEvent;
import org.spongepowered.api.plugin.Dependency; import org.spongepowered.api.plugin.Dependency;
import org.spongepowered.api.plugin.Plugin; import org.spongepowered.api.plugin.Plugin;
import us.myles.ViaVersion.api.Via;
import us.myles.ViaVersion.sponge.util.LoggerWrapper; import us.myles.ViaVersion.sponge.util.LoggerWrapper;
import java.io.File; import java.io.File;
@ -45,7 +46,7 @@ public class SpongePlugin implements ViaBackwardsPlatform {
// Setup Logger // Setup Logger
this.logger = new LoggerWrapper(loggerSlf4j); this.logger = new LoggerWrapper(loggerSlf4j);
// Init! // Init!
this.init(configPath.resolve("config.yml").toFile()); Via.getManager().addEnableListener(() -> this.init(configPath.resolve("config.yml").toFile()));
} }
@Override @Override