1
0
mirror of https://github.com/ViaVersion/ViaProxy.git synced 2025-01-05 18:58:25 +01:00

Updated Via* API usage

This commit is contained in:
RaphiMC 2023-10-08 11:49:44 +02:00
parent d69ba03224
commit 0197c6098c
No known key found for this signature in database
GPG Key ID: 0F6BB0657A03AC94
3 changed files with 4 additions and 4 deletions
build.gradle
src/main/java/net/raphimc/viaproxy/protocolhack

View File

@ -71,9 +71,9 @@ dependencies {
exclude group: "io.netty", module: "netty-all"
exclude group: "com.google.guava", module: "guava"
}
include "com.viaversion:viarewind-common:3.0.0"
include "com.viaversion:viarewind-common:3.0.2-SNAPSHOT"
include "net.raphimc:ViaLegacy:2.2.21-SNAPSHOT"
include "net.raphimc:ViaAprilFools:2.0.9"
include "net.raphimc:ViaAprilFools:2.0.10-SNAPSHOT"
include("net.raphimc:ViaBedrock:0.0.3-SNAPSHOT") {
exclude group: "io.netty", module: "netty-codec-http"
exclude group: "io.jsonwebtoken", module: "jjwt-impl"

View File

@ -33,7 +33,7 @@ public class ConfigPatcher extends Config {
super(configFile);
this.patches = patches;
this.reloadConfig();
this.reload();
}
@Override

View File

@ -51,7 +51,7 @@ public class ProtocolHack {
viaVersionPatches.put("chunk-border-fix", true);
new ConfigPatcher(viaVersionConfig, viaVersionPatches);
final File viaBackwardsConfig = new File(configFolder, "config.yml");
final File viaBackwardsConfig = new File(configFolder, "viabackwards.yml");
final Map<String, Object> viaBackwardsPatches = new HashMap<>();
viaBackwardsPatches.put("fix-1_13-face-player", true);
viaBackwardsPatches.put("handle-pings-as-inv-acknowledgements", true);