update filter on assembly resolver

This commit is contained in:
RaidMax 2023-05-27 14:09:57 -05:00
parent ba911f26ec
commit 003945c241

View File

@ -68,7 +68,7 @@ namespace IW4MAdmin.Application
var overrides = new[] { nameof(SharedLibraryCore), nameof(Stats) };
if (!overrides.Contains(libraryName))
{
return AppDomain.CurrentDomain.GetAssemblies().First(asm => asm.FullName == eventArgs.Name);
return AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(asm => asm.FullName == eventArgs.Name);
}
// added to be a bit more permissive with plugin references
return AppDomain.CurrentDomain.GetAssemblies()