Moved Via config load to correct place

This commit is contained in:
RaphiMC 2024-02-13 23:30:03 +01:00
parent b3c439e0fe
commit b0ee047bd0
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
3 changed files with 5 additions and 5 deletions

View File

@ -38,8 +38,8 @@ repositories {
}
dependencies {
compileOnly "com.viaversion:viaversion-common:4.10.0-23w51b-SNAPSHOT"
compileOnly "com.viaversion:viabackwards-common:4.10.0-23w51b-SNAPSHOT"
compileOnly "com.viaversion:viaversion-common:4.10.0-24w06a-SNAPSHOT"
compileOnly "com.viaversion:viabackwards-common:4.10.0-24w06a-SNAPSHOT"
compileOnly "com.viaversion:viarewind-common:3.0.5"
compileOnly "net.raphimc:ViaLegacy:2.2.21"
compileOnly "net.raphimc:ViaAprilFools:2.0.10"

View File

@ -55,6 +55,8 @@ public class ViaLoader {
.commandHandler(commandHandler)
.build());
Via.getConfig().reload();
if (platformSuppliers != null) {
Via.getManager().addEnableListener(() -> {
for (Supplier<?> additionalPlatformSupplier : platformSuppliers) {

View File

@ -156,9 +156,7 @@ public class ViaVersionPlatformImpl implements ViaPlatform<UUID> {
}
protected AbstractViaConfig createConfig() {
final AbstractViaConfig config = new VLViaConfig(new File(this.dataFolder, "viaversion.yml"));
config.reload();
return config;
return new VLViaConfig(new File(this.dataFolder, "viaversion.yml"));
}
protected ViaAPI<UUID> createApi() {