Allow 1.19.0 clients on 1.19.1 servers

This commit is contained in:
Nassim Jahnke 2022-07-28 11:47:25 +02:00
parent b336b8a1fc
commit b632e4772f
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 5 additions and 4 deletions

View File

@ -5,7 +5,7 @@ plugins {
allprojects { allprojects {
group = "com.viaversion" group = "com.viaversion"
version = "4.4.0" version = "4.4.1-SNAPSHOT"
description = "Allow older clients to join newer server versions." description = "Allow older clients to join newer server versions."
} }

View File

@ -58,7 +58,7 @@ import java.util.logging.Logger;
public interface ViaBackwardsPlatform { public interface ViaBackwardsPlatform {
String MINIMUM_VV_VERSION = "4.4.0"; String MINIMUM_VV_VERSION = "4.4.1";
String IMPL_VERSION = "$IMPL_VERSION"; String IMPL_VERSION = "$IMPL_VERSION";
/** /**
@ -80,7 +80,8 @@ public interface ViaBackwardsPlatform {
getLogger().info("Loading translations..."); getLogger().info("Loading translations...");
TranslatableRewriter.loadTranslatables(); 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_9_4To1_10(), ProtocolVersion.v1_9_3, ProtocolVersion.v1_10);
protocolManager.registerProtocol(new Protocol1_10To1_11(), ProtocolVersion.v1_10, ProtocolVersion.v1_11); protocolManager.registerProtocol(new Protocol1_10To1_11(), ProtocolVersion.v1_10, ProtocolVersion.v1_11);

View File

@ -3,7 +3,7 @@ metadata.format.version = "1.1"
[versions] [versions]
# ViaVersion # ViaVersion
viaver = "4.4.0-1.19.1-rc3-SNAPSHOT" viaver = "4.4.1-SNAPSHOT"
# Common provided # Common provided
netty = "4.0.20.Final" netty = "4.0.20.Final"