Removed unused BashException

This commit is contained in:
2024-06-29 13:16:13 +02:00
parent 3829eb0d7f
commit f329b00687
3 changed files with 3 additions and 18 deletions

View File

@@ -42,9 +42,10 @@ public static class Plugins
.Where(IsPluginType)
.Select(Activator.CreateInstance)
.Cast<ICommandPlugin>()
.First();
.FirstOrDefault();
_loaded.Add(plugin);
if (plugin is not null)
_loaded.Add(plugin);
}
}