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
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" );