From b632e4772ff4c12b400cb9e849f5420630802d2f Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 28 Jul 2022 11:47:25 +0200 Subject: [PATCH] Allow 1.19.0 clients on 1.19.1 servers --- build.gradle.kts | 2 +- .../viaversion/viabackwards/api/ViaBackwardsPlatform.java | 5 +++-- gradle/libs.versions.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 7f06b687..a62671c6 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { allprojects { group = "com.viaversion" - version = "4.4.0" + version = "4.4.1-SNAPSHOT" description = "Allow older clients to join newer server versions." } diff --git a/common/src/main/java/com/viaversion/viabackwards/api/ViaBackwardsPlatform.java b/common/src/main/java/com/viaversion/viabackwards/api/ViaBackwardsPlatform.java index 058095e0..df679f4a 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/ViaBackwardsPlatform.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/ViaBackwardsPlatform.java @@ -58,7 +58,7 @@ import java.util.logging.Logger; public interface ViaBackwardsPlatform { - String MINIMUM_VV_VERSION = "4.4.0"; + String MINIMUM_VV_VERSION = "4.4.1"; String IMPL_VERSION = "$IMPL_VERSION"; /** @@ -80,7 +80,8 @@ public interface ViaBackwardsPlatform { getLogger().info("Loading translations..."); TranslatableRewriter.loadTranslatables(); - ProtocolManager protocolManager = Via.getManager().getProtocolManager(); + final ProtocolManager protocolManager = Via.getManager().getProtocolManager(); + protocolManager.setMaxPathDeltaIncrease(1); // Since we skip 1.19 protocolManager.registerProtocol(new Protocol1_9_4To1_10(), ProtocolVersion.v1_9_3, ProtocolVersion.v1_10); protocolManager.registerProtocol(new Protocol1_10To1_11(), ProtocolVersion.v1_10, ProtocolVersion.v1_11); diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 90a5a48d..81f051b2 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -3,7 +3,7 @@ metadata.format.version = "1.1" [versions] # ViaVersion -viaver = "4.4.0-1.19.1-rc3-SNAPSHOT" +viaver = "4.4.1-SNAPSHOT" # Common provided netty = "4.0.20.Final"