From 108dddb5cca18f5b56a0460a9a1a5e2af59a7084 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 27 May 2023 14:09:57 -0500 Subject: [PATCH] update filter on assembly resolver --- Application/Main.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Main.cs b/Application/Main.cs index 24797f074..83101a043 100644 --- a/Application/Main.cs +++ b/Application/Main.cs @@ -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()