ForeverZer0 / SharpNBT

A pure CLS-compliant C# implementation of the Named Binary Tag (NBT) format specification commonly used with Minecraft applications, allowing easy reading/writing streams and serialization to other formats.
MIT License
25 stars 9 forks source link

Fix TagWriter type and name writing #35

Open NotroDev opened 3 weeks ago

NotroDev commented 3 weeks ago

This PR addresses an issue with the TagWriter's WriteTypeAndName function. The logic was previously incorrect due to an inverted if condition, which also prevented the type from being written when it should have been.

Additionally, I updated the .gitignore file. The old one was pretty basic and missed a lot of Visual Studio files.