diff --git a/SharpNBT/TagWriter.cs b/SharpNBT/TagWriter.cs index 5af5265..37a20ca 100644 --- a/SharpNBT/TagWriter.cs +++ b/SharpNBT/TagWriter.cs @@ -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)); } -} \ No newline at end of file +}