Minecraft 1.21.6-pre3 support

This commit is contained in:
md_5 2025-06-07 09:48:12 +10:00
parent 5348aad094
commit 5709a65785
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11
2 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,11 @@ public class ListTag implements TypedTag
listType = input.readByte();
int length = input.readInt();
if ( length < 0 )
{
throw new NBTFormatException( "ListTag length cannot be negative" );
}
if ( listType == Tag.END && length > 0 )
{
throw new NBTFormatException( "Missing type in ListTag" );

View File

@ -50,7 +50,7 @@ public class ProtocolConstants
public static final int MINECRAFT_1_21_2 = 768;
public static final int MINECRAFT_1_21_4 = 769;
public static final int MINECRAFT_1_21_5 = 770;
public static final int MINECRAFT_1_21_6 = 1073742076;
public static final int MINECRAFT_1_21_6 = 1073742078;
public static final List<String> SUPPORTED_VERSIONS;
public static final List<Integer> SUPPORTED_VERSION_IDS;