Skip to content

Commit

Permalink
Fixed loaded plugins being indexed by their directory path relative t…
Browse files Browse the repository at this point in the history
…o root, instead of just the immediate plugin directory name
  • Loading branch information
Skippeh committed Jan 30, 2022
1 parent bb09282 commit 12706d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JKMP.Core/Plugins/PluginManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal void LoadPlugins()
pluginContainer.Plugin.Configs = new PluginConfigs(pluginContainer.Plugin);
pluginContainer.Plugin.Configs.JsonSerializerSettings = CreateDefaultJsonSerializerSettings();

loadedPlugins[pluginDirectory.ToLowerInvariant()] = pluginContainer;
loadedPlugins[Path.GetFileName(pluginDirectory).ToLowerInvariant()] = pluginContainer;

Logger.Verbose("Plugin loaded");
}
Expand Down

0 comments on commit 12706d3

Please sign in to comment.