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)]
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
private void WriteTypeAndName(Tag tag)
|
private void WriteTypeAndName(Tag tag)
|
||||||
{
|
{
|
||||||
if (tag.Parent is ListTag || string.IsNullOrEmpty(tag.Name))
|
if (tag.Parent is ListTag)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
BaseStream.WriteByte((byte) tag.Type);
|
BaseStream.WriteByte((byte) tag.Type);
|
||||||
|
@ -384,4 +384,4 @@ public class TagWriter : TagIO
|
||||||
else
|
else
|
||||||
BaseStream.Write(GetBytes(count), 0, sizeof(int));
|
BaseStream.Write(GetBytes(count), 0, sizeof(int));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue