Merge branch 'dev' into color-ids

This commit is contained in:
AS authored and GitHub committed 2026-11-03 10:31:34 -05:00
commit fff7b04040
2 files changed
+3 -3

No files matched your search

@@ -175,7 +175,7 @@ public abstract class ModdedOptionMemberAttribute(string? memberName, Type? hold
foreach (var method in type.GetMethods(getterFlags))
{
if (method.GetParameters().Length > 0 || (method.IsDefined<InstanceGetterAttribute>() && method.Name != "GetInstance"))
if (method.GetParameters().Length > 0 || (!method.IsDefined<InstanceGetterAttribute>() && method.Name != "GetInstance"))
continue;
instanceGetter = method;
@@ -186,7 +186,7 @@ public abstract class ModdedOptionMemberAttribute(string? memberName, Type? hold
{
foreach (var prop in type.GetProperties(getterFlags))
{
if (prop.IsDefined<InstanceGetterAttribute>() && prop.Name != "Instance")
if (!prop.IsDefined<InstanceGetterAttribute>() && prop.Name != "Instance")
continue;
var getMethod = prop.GetGetMethod(canSearchPrivates);
+1 -1
View File
@@ -468,7 +468,7 @@ public sealed class MiraPluginManager
{
try
{
if (type.IsDefined<RegisterCustomKeybindsAttribute>())
if (!type.IsDefined<RegisterCustomKeybindsAttribute>())
{
return;
}