mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 01:06:01 +01:00
Make class loader preference predictable; Fixes BUKKIT-1591
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
1d034350f7
commit
242582acc7
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