Minecraft 1.21.6-pre3 support
This commit is contained in:
@@ -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" );
|
||||
|
Reference in New Issue
Block a user