mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
Make class loader preference predictable; Fixes BUKKIT-1591
This commit is contained in:
parent
9f3b14f323
commit
f54d9354e8
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ import java.lang.reflect.Method;
|
|||
import java.net.URL;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
@ -49,7 +50,7 @@ public class JavaPluginLoader implements PluginLoader {
|
|||
private final Server server;
|
||||
protected final Pattern[] fileFilters = new Pattern[] { Pattern.compile("\\.jar$"), };
|
||||
protected final Map<String, Class<?>> classes = new HashMap<String, Class<?>>();
|
||||
protected final Map<String, PluginClassLoader> loaders = new HashMap<String, PluginClassLoader>();
|
||||
protected final Map<String, PluginClassLoader> loaders = new LinkedHashMap<String, PluginClassLoader>();
|
||||
|
||||
public JavaPluginLoader(Server instance) {
|
||||
server = instance;
|
||||
|
|
Loading…
Add table
Reference in a new issue