diff --git a/NBTExplorer/Controllers/NodeTreeController.cs b/NBTExplorer/Controllers/NodeTreeController.cs index be4f7ff..217b60e 100644 --- a/NBTExplorer/Controllers/NodeTreeController.cs +++ b/NBTExplorer/Controllers/NodeTreeController.cs @@ -229,12 +229,14 @@ namespace NBTExplorer.Controllers foreach (var item in FileTypeRegistry.RegisteredTypes) { if (item.Value.NamePatternTest(path)) node = item.Value.NodeCreate(path); - } - - if (node != null) - _nodeTree.Nodes.Add(CreateUnexpandedNode(node)); - else - failCount++; + } + + if (node == null) + node = NbtFileDataNode.TryCreateFrom(path); + if (node != null) + _nodeTree.Nodes.Add(CreateUnexpandedNode(node)); + else + failCount++; } }