mirror of
https://github.com/ViaVersion/ViaLoader.git
synced 2024-11-15 10:45:28 +01:00
Moved Via config load to correct place
This commit is contained in:
parent
b3c439e0fe
commit
b0ee047bd0
@ -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"
|
||||
|
@ -55,6 +55,8 @@ public class ViaLoader {
|
||||
.commandHandler(commandHandler)
|
||||
.build());
|
||||
|
||||
Via.getConfig().reload();
|
||||
|
||||
if (platformSuppliers != null) {
|
||||
Via.getManager().addEnableListener(() -> {
|
||||
for (Supplier<?> additionalPlatformSupplier : platformSuppliers) {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user