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

Check for leading +/- when determining array type in SNBT #25

Open ForeverZer0 opened 10 months ago

ForeverZer0 commented 10 months ago

In ParseList, when determining if an container is a ListTag or array of numbers, it checks if the next in the sequence is a number:

if (char.IsNumber(c) || c == ',')

This should also include a check for a number that has a leading + or -.