we done a lil goof

This commit is contained in:
Paul
2023-02-06 23:21:33 +01:00
parent a4a7e754af
commit a7d79eed2d

View File

@@ -84,7 +84,7 @@ public partial class PrototypeManager
public Dictionary<string, HashSet<ErrorNode>> ValidateDirectory(ResourcePath path)
{
var streams = Resources.ContentFindFiles(path).ToList().AsParallel()
.Where(filePath => filePath.Extension == "yml" && !filePath.Filename.StartsWith("."));
.Where(filePath => filePath.Extension is "yml" or "yaml" && !filePath.Filename.StartsWith("."));
var dict = new Dictionary<string, HashSet<ErrorNode>>();
foreach (var resourcePath in streams)