PluginManager: Reverse the loading of plugins.
When loading plugins in the default order, lets say Wintertodt-0.0.1.jar Wintertodt-0.0.2.jar Wintertodt-0.0.3.jar It would load 0.0.1 then detect 0.0.2 and 0.0.3 as duplicates. By reversing this it would load the newest one and detect the old ones as duplicate.
This commit is contained in:
@@ -125,6 +125,7 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
|
||||
}
|
||||
|
||||
List<Path> pluginPaths = pluginRepository.getPluginPaths();
|
||||
Collections.reverse(pluginPaths);
|
||||
|
||||
if (pluginPaths.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user