From 5a1e342e0d500bfbab77dcfda24273e971a28b02 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 22 Sep 2023 02:40:00 +1000 Subject: [PATCH] Minecraft 1.20.2 support --- .../java/net/md_5/bungee/protocol/ProtocolConstants.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 46311941..7d5e2635 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 @@ -43,7 +43,7 @@ public class ProtocolConstants public static final int MINECRAFT_1_19_3 = 761; public static final int MINECRAFT_1_19_4 = 762; public static final int MINECRAFT_1_20 = 763; - public static final int MINECRAFT_1_20_2 = 1073741976; + public static final int MINECRAFT_1_20_2 = 764; public static final List SUPPORTED_VERSIONS; public static final List SUPPORTED_VERSION_IDS; @@ -100,13 +100,14 @@ public class ProtocolConstants ProtocolConstants.MINECRAFT_1_19_1, ProtocolConstants.MINECRAFT_1_19_3, ProtocolConstants.MINECRAFT_1_19_4, - ProtocolConstants.MINECRAFT_1_20 + ProtocolConstants.MINECRAFT_1_20, + ProtocolConstants.MINECRAFT_1_20_2 ); if ( SNAPSHOT_SUPPORT ) { // supportedVersions.add( "1.20.x" ); - supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_20_2 ); + // supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_20_2 ); } SUPPORTED_VERSIONS = supportedVersions.build();