Merge pull request #2834 from open-osrs/fix-development-mode

externalpluginmanager: Fix development mode after #2815
This commit is contained in:
Owain van Brakel
2020-10-21 13:09:01 +02:00
committed by GitHub

View File

@@ -150,9 +150,12 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
catch (PluginRuntimeException e) catch (PluginRuntimeException e)
{ {
if (!(e instanceof PluginAlreadyLoadedException)) if (!(e instanceof PluginAlreadyLoadedException))
{
if (!ExternalPluginManager.isDevelopmentMode())
{ {
String plugin = pluginPath.toString().substring(pluginsRoot.toString().length() + 1); String plugin = pluginPath.toString().substring(pluginsRoot.toString().length() + 1);
duplicatePlugins.add(plugin); duplicatePlugins.add(plugin);
}
log.error("Could not load plugin {}", pluginPath, e); log.error("Could not load plugin {}", pluginPath, e);
} }
} }