mirror of
https://github.com/ViaVersion/ViaLoader.git
synced 2024-09-27 04:12:43 +02:00
Updated Via* API usage
This commit is contained in:
parent
bd1801e3aa
commit
e46d9be16a
@ -5,7 +5,7 @@ ViaLoader is not usable by itself as a standalone software, as it is an implemen
|
||||
|
||||
### Projects implementing ViaLoader
|
||||
- [ViaProxy](https://github.com/ViaVersion/ViaProxy): Standalone proxy which allows players to join EVERY Minecraft server version (Classic, Alpha, Beta, Release, Bedrock).
|
||||
- [ViaForge](https://github.com/ViaVersion/ViaForge): Client-side Implementation of ViaVersion, ViaBackwards and ViaRewind for Legacy Minecraft Forge
|
||||
- [ViaForge](https://github.com/ViaVersion/ViaForge): Client-side Implementation of ViaVersion, ViaBackwards and ViaRewind for Legacy Minecraft Forge.
|
||||
- [ViaFabricPlus](https://github.com/ViaVersion/ViaFabricPlus): Fabric mod to connect to EVERY Minecraft server version (Release, Beta, Alpha, Classic, Snapshots, Bedrock) with QoL fixes to the gameplay.
|
||||
|
||||
## Releases
|
||||
|
@ -43,9 +43,9 @@ dependencies {
|
||||
exclude group: "com.viaversion", module: "viaversion"
|
||||
exclude group: "io.netty", module: "netty-all"
|
||||
}
|
||||
compileOnly "com.viaversion:viarewind-common:3.0.0"
|
||||
compileOnly "net.raphimc:ViaLegacy:2.2.20"
|
||||
compileOnly "net.raphimc:ViaAprilFools:2.0.9"
|
||||
compileOnly "com.viaversion:viarewind-common:3.0.2-SNAPSHOT"
|
||||
compileOnly "net.raphimc:ViaLegacy:2.2.21-SNAPSHOT"
|
||||
compileOnly "net.raphimc:ViaAprilFools:2.0.10-SNAPSHOT"
|
||||
compileOnly "net.raphimc:ViaBedrock:0.0.3-SNAPSHOT"
|
||||
compileOnly "org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR1-SNAPSHOT"
|
||||
|
||||
|
@ -30,7 +30,7 @@ public class ViaBackwardsPlatformImpl implements ViaBackwardsPlatform {
|
||||
private static final Logger LOGGER = new JLoggerToSLF4J(LoggerFactory.getLogger("ViaBackwards"));
|
||||
|
||||
public ViaBackwardsPlatformImpl() {
|
||||
this.init(this.getDataFolder());
|
||||
this.init(new File(this.getDataFolder(), "viabackwards.yml"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -17,7 +17,6 @@
|
||||
*/
|
||||
package net.raphimc.vialoader.impl.platform;
|
||||
|
||||
import com.viaversion.viarewind.ViaRewindConfig;
|
||||
import com.viaversion.viarewind.api.ViaRewindPlatform;
|
||||
import com.viaversion.viaversion.api.Via;
|
||||
import net.raphimc.vialoader.util.JLoggerToSLF4J;
|
||||
@ -31,9 +30,7 @@ public class ViaRewindPlatformImpl implements ViaRewindPlatform {
|
||||
private static final Logger LOGGER = new JLoggerToSLF4J(LoggerFactory.getLogger("ViaRewind"));
|
||||
|
||||
public ViaRewindPlatformImpl() {
|
||||
final ViaRewindConfig config = new ViaRewindConfig(new File(Via.getPlatform().getDataFolder(), "viarewind.yml"));
|
||||
config.reloadConfig();
|
||||
this.init(config);
|
||||
this.init(new File(Via.getPlatform().getDataFolder(), "viarewind.yml"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -147,11 +147,6 @@ public class ViaVersionPlatformImpl implements ViaPlatform<UUID> {
|
||||
return this.config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConfigurationProvider getConfigurationProvider() {
|
||||
return this.config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getDataFolder() {
|
||||
return this.dataFolder;
|
||||
@ -168,7 +163,7 @@ public class ViaVersionPlatformImpl implements ViaPlatform<UUID> {
|
||||
|
||||
protected AbstractViaConfig createConfig() {
|
||||
final AbstractViaConfig config = new VLViaConfig(new File(this.dataFolder, "viaversion.yml"));
|
||||
config.reloadConfig();
|
||||
config.reload();
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user