diff --git a/NBTModel/Utility/NaturalComparer.cs b/NBTModel/Utility/NaturalComparer.cs index e59f7f6..d3f7b35 100644 --- a/NBTModel/Utility/NaturalComparer.cs +++ b/NBTModel/Utility/NaturalComparer.cs @@ -29,11 +29,11 @@ namespace NBTExplorer.Utility } string[] x1, y1; if (!table.TryGetValue(x, out x1)) { - x1 = Regex.Split(x.Replace(" ", ""), "([0-9]+)"); + x1 = Regex.Split(x.Replace(" ", ""), "(-?[0-9]+)"); table.Add(x, x1); } if (!table.TryGetValue(y, out y1)) { - y1 = Regex.Split(y.Replace(" ", ""), "([0-9]+)"); + y1 = Regex.Split(y.Replace(" ", ""), "(-?[0-9]+)"); table.Add(y, y1); }