Allow compound tag with empty name
This commit is contained in:
parent
d6e0075b74
commit
7f020e1c51
|
@ -306,7 +306,7 @@ public class TagWriter : TagIO
|
|||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private void WriteTypeAndName(Tag tag)
|
||||
{
|
||||
if (tag.Parent is ListTag || string.IsNullOrEmpty(tag.Name))
|
||||
if (tag.Parent is ListTag)
|
||||
return;
|
||||
|
||||
BaseStream.WriteByte((byte) tag.Type);
|
||||
|
@ -384,4 +384,4 @@ public class TagWriter : TagIO
|
|||
else
|
||||
BaseStream.Write(GetBytes(count), 0, sizeof(int));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue