1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

update filter on assembly resolver

This commit is contained in:
RaidMax 2023-05-27 14:09:57 -05:00
parent 4a43fe892f
commit 4e81274116

View File

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