Merge pull request #2622 from swazrgb/comparator-null
This commit is contained in:
@@ -74,6 +74,12 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
|
|||||||
if (isNotDevelopment())
|
if (isNotDevelopment())
|
||||||
{
|
{
|
||||||
JarPluginRepository jarPluginRepository = new JarPluginRepository(getPluginsRoot());
|
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);
|
compoundPluginRepository.add(jarPluginRepository);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user