mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Fix buggy classloader warning triggering for all classes
This commit is contained in:
parent
89586a4cfc
commit
4e4c0ee90a
1 changed files with 2 additions and 1 deletions
|
@ -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())) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue