Fix Velocity/Sponge config location

This commit is contained in:
Nassim Jahnke 2022-03-18 10:30:55 +01:00
parent eda8abf55c
commit 31787b5e5b
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class SpongePlugin implements ViaBackwardsPlatform {
@Listener
public void constructPlugin(ConstructPluginEvent event) {
// Init!
Via.getManager().addEnableListener(() -> this.init(configPath.resolve("config.yml").toFile()));
Via.getManager().addEnableListener(() -> this.init(getDataFolder()));
}
@Override

View File

@ -53,7 +53,7 @@ public class VelocityPlugin implements ViaBackwardsPlatform {
public void onProxyStart(ProxyInitializeEvent e) {
// Setup Logger
this.logger = new LoggerWrapper(loggerSlf4j);
Via.getManager().addEnableListener(() -> this.init(configPath.resolve("config.yml").toFile()));
Via.getManager().addEnableListener(() -> this.init(getDataFolder()));
}
@Override