mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Fix buggy classloader warning triggering for all classes
By: md_5 <git@md-5.net>
This commit is contained in:
parent
fe8b567ad1
commit
0fc1ae9b1c
@ -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…
Reference in New Issue
Block a user