fix: raw plugins not loading without config file

This commit is contained in:
Aireil 2021-04-29 09:00:00 +02:00
parent 411cf3ee9c
commit 6bea0ab38a

View file

@ -149,7 +149,7 @@ namespace Dalamud.Plugin
return prio2.CompareTo(prio1);
});
this.deferredPlugins = pluginDefs.Where(x => x.definition?.LoadPriority <= 0);
this.deferredPlugins = pluginDefs.Where(x => x.definition == null || x.definition.LoadPriority <= 0);
// Pass preloaded definitions for "synchronous load" plugins to LoadPluginFromAssembly, because we already loaded them anyways
foreach (var (dllFile, definition, isRaw) in pluginDefs.Where(x => x.definition?.LoadPriority > 0))