Added interface to error logger check

This commit is contained in:
David Higueros committed 2026-06-21 13:54:08 -06:00
1 parent 39a43f5395
commit 604d2f375d
1 file changed
+2 -1
+2 -1
View File
@@ -213,7 +213,8 @@ public sealed class MiraPluginManager
}
}
foreach (var field in type.GetFields().Where(f => f.FieldType.IsAssignableTo(typeof(IModdedOption))))
foreach (var field in type.GetFields()
.Where(f => f.FieldType.IsAssignableTo(typeof(IModdedOption)) || f.FieldType.IsAssignableTo(typeof(IModdedOptionList))))
{
Error($"{field.Name} is a field, not a property. Use properties for options.");
}