mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Add some Metadata validation.
This commit is contained in:
parent
5567134a56
commit
e14fedf59e
17 changed files with 254 additions and 158 deletions
|
|
@ -89,7 +89,7 @@ public sealed class SubMod : ISubMod
|
|||
var manips = json[nameof(Manipulations)];
|
||||
if (manips != null)
|
||||
foreach (var s in manips.Children().Select(c => c.ToObject<MetaManipulation>())
|
||||
.Where(m => m.ManipulationType != MetaManipulation.Type.Unknown))
|
||||
.Where(m => m.Validate()))
|
||||
ManipulationData.Add(s);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue