Merge pull request #2622 from swazrgb/comparator-null

This commit is contained in:
Owain van Brakel
2020-05-25 17:38:16 +02:00
committed by GitHub

View File

@@ -74,6 +74,12 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
if (isNotDevelopment())
{
JarPluginRepository jarPluginRepository = new JarPluginRepository(getPluginsRoot());
// Default pf4j comparator crashes on some systems (https://github.com/open-osrs/runelite/pull/2621)
// We also don't care about plugin order at this point, pf4j will sort by Plugin-Dependencies
// and we re-sort later based on `@PluginDependency`
jarPluginRepository.setComparator(null);
compoundPluginRepository.add(jarPluginRepository);
}