From 8a80435e647c358b0c2235549fabbda4627b532a Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 4 Dec 2024 03:20:00 +1100 Subject: [PATCH] Minecraft 1.21.4 support --- chat/pom.xml | 2 +- config/pom.xml | 2 +- pom.xml | 4 ++-- .../java/net/md_5/bungee/protocol/ProtocolConstants.java | 7 ++++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/chat/pom.xml b/chat/pom.xml index 71c4ce279..9a9bc5069 100644 --- a/chat/pom.xml +++ b/chat/pom.xml @@ -22,7 +22,7 @@ com.google.code.gson gson - 2.10.1 + 2.11.0 compile diff --git a/config/pom.xml b/config/pom.xml index 4b94f1126..58f0b7cad 100644 --- a/config/pom.xml +++ b/config/pom.xml @@ -22,7 +22,7 @@ com.google.code.gson gson - 2.10.1 + 2.11.0 compile true diff --git a/pom.xml b/pom.xml index 7335e8b79..7a41e4642 100644 --- a/pom.xml +++ b/pom.xml @@ -83,7 +83,7 @@ io.netty netty-bom - 4.1.110.Final + 4.1.115.Final pom import @@ -99,7 +99,7 @@ com.google.guava guava - 32.1.2-jre + 33.3.1-jre compile diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java index 50ea3d555..b3d1c2bba 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/ProtocolConstants.java @@ -48,7 +48,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_20_5 = 766; public static final int MINECRAFT_1_21 = 767; public static final int MINECRAFT_1_21_2 = 768; - public static final int MINECRAFT_1_21_4 = 1073742052; + public static final int MINECRAFT_1_21_4 = 769; public static final List SUPPORTED_VERSIONS; public static final List SUPPORTED_VERSION_IDS; @@ -111,13 +111,14 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_20_3, ProtocolConstants.MINECRAFT_1_20_5, ProtocolConstants.MINECRAFT_1_21, - ProtocolConstants.MINECRAFT_1_21_2 + ProtocolConstants.MINECRAFT_1_21_2, + ProtocolConstants.MINECRAFT_1_21_4 ); if ( SNAPSHOT_SUPPORT ) { // supportedVersions.add( "1.21.x" ); - supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_21_4 ); + // supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_21_4 ); } SUPPORTED_VERSIONS = supportedVersions.build();