Change everything in collection caches to use IMod and introduce TemporaryMod.

This commit is contained in:
Ottermandias 2022-06-18 16:00:20 +02:00
parent c578bd3a49
commit fc767589a2
18 changed files with 129 additions and 74 deletions

View file

@ -378,7 +378,7 @@ public class PenumbraApi : IDisposable, IPenumbraApi
if( group.Type == SelectType.Single )
{
var name = optionNames[ ^1 ];
var optionIdx = group.IndexOf( o => o.Name == name );
var optionIdx = group.IndexOf( o => o.Name == optionNames[^1] );
if( optionIdx < 0 )
{
return PenumbraApiEc.OptionMissing;