Add some checks for valid variants in IMC Meta Edits.

This commit is contained in:
Ottermandias 2022-12-31 12:26:05 +01:00
parent a01f73cde4
commit 33b4905ae2
7 changed files with 39 additions and 16 deletions

View file

@ -173,7 +173,7 @@ public partial class Mod
var manips = json[ nameof( Manipulations ) ];
if( manips != null )
{
foreach( var s in manips.Children().Select( c => c.ToObject< MetaManipulation >() ) )
foreach( var s in manips.Children().Select( c => c.ToObject< MetaManipulation >() ).Where( m => m.ManipulationType != MetaManipulation.Type.Unknown ) )
{
ManipulationData.Add( s );
}