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

@ -963,7 +963,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
}
manips = new HashSet< MetaManipulation >( manipArray!.Length );
foreach( var manip in manipArray )
foreach( var manip in manipArray.Where( m => m.ManipulationType != MetaManipulation.Type.Unknown ) )
{
if( !manips.Add( manip ) )
{