Skip to content

Commit

Permalink
Add a few more known NBT extensions to the file pattern for directory…
Browse files Browse the repository at this point in the history
… enumeration. Closes #21.  File-based open can already handle all extensions, from #31.
  • Loading branch information
jaquadro committed Apr 18, 2015
1 parent 60a7bbf commit 2882fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBTModel/Data/Nodes/NbtFileDataNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class NbtFileDataNode : DataNode, IMetaTagContainer

private CompoundTagContainer _container;

private static Regex _namePattern = new Regex(@"\.(dat|nbt|schematic)$");
private static Regex _namePattern = new Regex(@"\.(dat|nbt|schematic|dat_mcr|dat_old|bpt|rc)$");

private NbtFileDataNode (string path, CompressionType compressionType)
{
Expand Down

0 comments on commit 2882fcd

Please sign in to comment.