From 6f263513c9240b472b048fbc52f9ac1bddd9badc Mon Sep 17 00:00:00 2001 From: RaphiMC <50594595+RaphiMC@users.noreply.github.com> Date: Mon, 12 Jun 2023 16:53:22 +0200 Subject: [PATCH] Renamed 1.20 protocol version --- build.gradle | 2 +- .../raphimc/viaproxy/injection/mixins/MixinProtocolVersion.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 4058c9f..7b5c4ff 100644 --- a/build.gradle +++ b/build.gradle @@ -72,7 +72,7 @@ dependencies { compileOnly sourceSets.java17compat.output include "com.viaversion:viaversion:4.7.1-SNAPSHOT" - include("com.viaversion:viabackwards-common:4.7.0") { + include("com.viaversion:viabackwards-common:4.7.1-SNAPSHOT") { exclude group: "com.viaversion", module: "viaversion" exclude group: "io.netty", module: "netty-all" exclude group: "com.google.guava", module: "guava" diff --git a/src/main/java/net/raphimc/viaproxy/injection/mixins/MixinProtocolVersion.java b/src/main/java/net/raphimc/viaproxy/injection/mixins/MixinProtocolVersion.java index 6643fde..4243319 100644 --- a/src/main/java/net/raphimc/viaproxy/injection/mixins/MixinProtocolVersion.java +++ b/src/main/java/net/raphimc/viaproxy/injection/mixins/MixinProtocolVersion.java @@ -50,6 +50,7 @@ public abstract class MixinProtocolVersion { remaps.put("1.16.4/5", new Pair<>("1.16.4-1.16.5", null)); remaps.put("1.18/1.18.1", new Pair<>("1.18-1.18.1", null)); remaps.put("1.19.1/2", new Pair<>("1.19.1-1.19.2", null)); + remaps.put("1.20/1.20.1", new Pair<>("1.20-1.20.1", null)); } @Redirect(method = "", at = @At(value = "INVOKE", target = "Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;register(ILjava/lang/String;)Lcom/viaversion/viaversion/api/protocol/version/ProtocolVersion;"))