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:
ImNoOSRS
2020-11-23 16:36:35 +01:00
committed by GitHub
parent 50956469c9
commit d4530548cd

View File

@@ -125,6 +125,7 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
}
List<Path> pluginPaths = pluginRepository.getPluginPaths();
Collections.reverse(pluginPaths);
if (pluginPaths.isEmpty())
{