adds custom typeserializers (#3676)

This commit is contained in:
Paul Ritter
2021-03-15 13:25:18 +01:00
committed by GitHub
parent 08f44050fe
commit 9fc03f18f7
3 changed files with 10 additions and 7 deletions

View File

@@ -90,15 +90,15 @@ namespace Content.YAMLLinter
foreach (var (key, val) in serverErrors)
{
var newErrors = val.Where(n => n.AlwaysRelevant).ToHashSet();
if (clientErrors.TryGetValue(key, out var clientVal))
{
var newErrors = val.Intersect(clientVal).ToHashSet();
newErrors.UnionWith(val.Where(n => n.AlwaysRelevant));
newErrors.UnionWith(val.Intersect(clientVal));
newErrors.UnionWith(clientVal.Where(n => n.AlwaysRelevant));
if (newErrors.Count == 0) continue;
allErrors[key] = newErrors;
}
if (newErrors.Count == 0) continue;
allErrors[key] = newErrors;
}
return allErrors;