Merge pull request #2868 from ImNoOSRS/patch-1
PluginManager: Load plugins in reversed order.
This commit is contained in:
@@ -6,6 +6,7 @@ import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -125,6 +126,7 @@ class ExternalPf4jPluginManager extends DefaultPluginManager
|
||||
}
|
||||
|
||||
List<Path> pluginPaths = pluginRepository.getPluginPaths();
|
||||
Collections.reverse(pluginPaths);
|
||||
|
||||
if (pluginPaths.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user