mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-6822: Ensure library loader has same parent as plugin loader
This behaviour may need to be revisted in future to achieve greater isolation of plugins/libraries By: md_5 <git@md-5.net>
This commit is contained in:
parent
c5a7423ca0
commit
62f79aa905
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class LibraryLoader
|
|||
} );
|
||||
}
|
||||
|
||||
URLClassLoader loader = new URLClassLoader( jarFiles.toArray( new URL[ jarFiles.size() ] ) );
|
||||
URLClassLoader loader = new URLClassLoader( jarFiles.toArray( new URL[ jarFiles.size() ] ), getClass().getClassLoader() );
|
||||
|
||||
return loader;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue