diff --git a/Application/Plugin/PluginImporter.cs b/Application/Plugin/PluginImporter.cs index 2d221279..13b0fec8 100644 --- a/Application/Plugin/PluginImporter.cs +++ b/Application/Plugin/PluginImporter.cs @@ -100,7 +100,7 @@ public PluginImporter(ILogger logger, ApplicationConfiguration a var dllFileNames = Directory.GetFiles(pluginDir, "*.dll"); _logger.LogDebug("Discovered {Count} potential plugin assemblies", dllFileNames.Length); - if (!dllFileNames.Any()) + if (dllFileNames.Length is 0) { return (pluginTypes, commandTypes, configurationTypes); } @@ -125,7 +125,7 @@ public PluginImporter(ILogger logger, ApplicationConfiguration a assembly.OrderByDescending(asm => asm.GetName().Version).First()); var eligibleAssemblyTypes = assemblies.Concat(AppDomain.CurrentDomain.GetAssemblies() - .Where(asm => !new[] { "IW4MAdmin", "SharedLibraryCore" }.Contains(asm.GetName().Name))) + .Where(asm => !new[] { "IW4MAdmin", "SharedLibraryCore", "Stats" }.Contains(asm.GetName().Name))) .SelectMany(asm => { try @@ -134,7 +134,7 @@ public PluginImporter(ILogger logger, ApplicationConfiguration a } catch { - return Enumerable.Empty(); + return []; } }).Where(type => FilterTypes.Any(filterType => type.GetInterface(filterType.Name, false) != null) ||