From 0197c6098c1d71dddfefc5d37173d27b6b54b1d6 Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Sun, 8 Oct 2023 11:49:44 +0200 Subject: [PATCH] Updated Via* API usage --- build.gradle | 4 ++-- .../java/net/raphimc/viaproxy/protocolhack/ConfigPatcher.java | 2 +- .../java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 5f25416..8a9c47b 100644 --- a/build.gradle +++ b/build.gradle @@ -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" diff --git a/src/main/java/net/raphimc/viaproxy/protocolhack/ConfigPatcher.java b/src/main/java/net/raphimc/viaproxy/protocolhack/ConfigPatcher.java index 6bee828..caabe49 100644 --- a/src/main/java/net/raphimc/viaproxy/protocolhack/ConfigPatcher.java +++ b/src/main/java/net/raphimc/viaproxy/protocolhack/ConfigPatcher.java @@ -33,7 +33,7 @@ public class ConfigPatcher extends Config { super(configFile); this.patches = patches; - this.reloadConfig(); + this.reload(); } @Override diff --git a/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java b/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java index 57e9613..4f1609c 100644 --- a/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java +++ b/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java @@ -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 viaBackwardsPatches = new HashMap<>(); viaBackwardsPatches.put("fix-1_13-face-player", true); viaBackwardsPatches.put("handle-pings-as-inv-acknowledgements", true);