13
0
geforkt von Mirrors/Paper

Fix buggy classloader warning triggering for all classes

By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2020-01-27 10:58:39 +11:00
Ursprung fe8b567ad1
Commit 0fc1ae9b1c

Datei anzeigen

@ -106,7 +106,8 @@ final class PluginClassLoader extends URLClassLoader {
if (result != null) {
JavaPlugin provider = ((PluginClassLoader) result.getClassLoader()).plugin;
if (!description.getDepend().contains(provider.getName())
if (provider != plugin
&& !description.getDepend().contains(provider.getName())
&& !description.getSoftDepend().contains(provider.getName())
&& !provider.getDescription().getLoadBefore().contains(description.getName())) {