fix paramter type mismatch

This commit is contained in:
2025-03-04 06:33:42 +01:00
parent b60593dfca
commit 86154e93af
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<Version>2.10.4</Version> <Version>2.10.5</Version>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View File

@@ -142,7 +142,7 @@ public class PluginFeatureController
} }
else if (type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, []) is ConstructorInfo ctor) else if (type.GetConstructor(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, []) is ConstructorInfo ctor)
{ {
if (ctor.Invoke([this]) is PluginFeature feature) if (ctor.Invoke([]) is PluginFeature feature)
Register(feature); Register(feature);
} }
} }