SpongePlugin readd .getParentFile()

This commit is contained in:
creeper123123321 2020-04-14 12:47:44 -03:00 committed by GitHub
parent 9e4ed56384
commit c12c43e79a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ public class SpongePlugin implements ViaPlatform<Player> {
// Setup Logger
logger = new LoggerWrapper(container.getLogger());
// Setup Plugin
conf = new SpongeViaConfig(container, spongeConfig);
conf = new SpongeViaConfig(container, spongeConfig.getParentFile());
SpongeCommandHandler commandHandler = new SpongeCommandHandler();
game.getCommandManager().register(this, commandHandler, "viaversion", "viaver", "vvsponge");
logger.info("ViaVersion " + getPluginVersion() + " is now loaded!");
@ -196,7 +196,7 @@ public class SpongePlugin implements ViaPlatform<Player> {
@Override
public File getDataFolder() {
return spongeConfig;
return spongeConfig.getParentFile();
}
@Override