mirror of
https://github.com/jaquadro/NBTExplorer.git
synced 2025-01-09 17:36:25 +00:00
When sorting the children of a TAG_LIST, preserve the original order. Order matters for TAG_LISTs.
This commit is contained in:
parent
abde7d87c9
commit
f2688a8f9f
1 changed files with 10 additions and 0 deletions
|
@ -79,6 +79,16 @@ namespace NBTExplorer.Controllers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TagDataNode px = dx.Parent as TagDataNode;
|
||||||
|
TagDataNode py = dy.Parent as TagDataNode;
|
||||||
|
if (px != null && py != null)
|
||||||
|
{
|
||||||
|
if (px.Tag.GetTagType() == TagType.TAG_LIST || py.Tag.GetTagType() == TagType.TAG_LIST)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
TagType idx = dx.Tag.GetTagType();
|
TagType idx = dx.Tag.GetTagType();
|
||||||
TagType idy = dy.Tag.GetTagType();
|
TagType idy = dy.Tag.GetTagType();
|
||||||
int tagOrder = this.OrderForTag(idx).CompareTo(this.OrderForTag(idy));
|
int tagOrder = this.OrderForTag(idx).CompareTo(this.OrderForTag(idy));
|
||||||
|
|
Loading…
Reference in a new issue