Closed HoldYourWaffle closed 1 year ago
Since this PR also addresses the array tags:
ListTag
should have a check in the ListTag(List<Tag>, byte)
constructor, because its underlying value should not be null
.
Good catch, I've added some checks in ListTag
:)
Whoops, github does not like renaming branches...
Title says it all :)
NBT doesn't have a concept of
null
, andCompoundTag
is clearly not designed fornull
keys or values. In the interest of failing fast it'd be good to reject any roguenull
's upfront.Edit: I also added a check to prevent
EndTag
values inCompoundTag
.ListTag
'supdateType
already took care of this.