Minecraft 1.21.2 support

This commit is contained in:
md_5 2024-10-23 02:15:00 +11:00
parent 7338d0f444
commit 4886c4be01
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -47,7 +47,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_20_3 = 765;
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 = 1073742043;
public static final int MINECRAFT_1_21_2 = 768;
public static final List<String> SUPPORTED_VERSIONS;
public static final List<Integer> SUPPORTED_VERSION_IDS;
@ -109,13 +109,14 @@ public class ProtocolConstants
ProtocolConstants.MINECRAFT_1_20_2,
ProtocolConstants.MINECRAFT_1_20_3,
ProtocolConstants.MINECRAFT_1_20_5,
ProtocolConstants.MINECRAFT_1_21
ProtocolConstants.MINECRAFT_1_21,
ProtocolConstants.MINECRAFT_1_21_2
);
if ( SNAPSHOT_SUPPORT )
{
// supportedVersions.add( "1.21.x" );
supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_21_2 );
// supportedVersionIds.add( ProtocolConstants.MINECRAFT_1_21_2 );
}
SUPPORTED_VERSIONS = supportedVersions.build();