Updated ViaRewind platform implementation

This commit is contained in:
FlorianMichael 2024-02-18 22:33:28 +01:00
parent 2c4770ab69
commit f976ac3b85
No known key found for this signature in database
GPG Key ID: C2FB87E71C425126
2 changed files with 7 additions and 2 deletions

View File

@ -40,7 +40,7 @@ repositories {
dependencies {
compileOnly "com.viaversion:viaversion-common:4.10.0-24w07a-SNAPSHOT"
compileOnly "com.viaversion:viabackwards-common:4.10.0-24w07a-SNAPSHOT"
compileOnly "com.viaversion:viarewind-common:3.0.5"
compileOnly "com.viaversion:viarewind-common:3.0.6-SNAPSHOT"
compileOnly "net.raphimc:ViaLegacy:2.2.21"
compileOnly "net.raphimc:ViaAprilFools:2.0.10"
compileOnly "net.raphimc:ViaBedrock:0.0.5-SNAPSHOT"

View File

@ -30,7 +30,7 @@ public class ViaRewindPlatformImpl implements ViaRewindPlatform {
private static final Logger LOGGER = new JLoggerToSLF4J(LoggerFactory.getLogger("ViaRewind"));
public ViaRewindPlatformImpl() {
this.init(new File(Via.getPlatform().getDataFolder(), "viarewind.yml"));
this.init(new File(getDataFolder(), "viarewind.yml"));
}
@Override
@ -38,4 +38,9 @@ public class ViaRewindPlatformImpl implements ViaRewindPlatform {
return LOGGER;
}
@Override
public File getDataFolder() {
return Via.getPlatform().getDataFolder();
}
}