mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Throw CNFE if we have an error processing plugin classes
By: md_5 <git@md-5.net>
This commit is contained in:
1 parent
6400a40fb2
commit
246fed61ca
1 file changed
+5
-1
@@ -100,7 +100,11 @@ final class PluginClassLoader extends URLClassLoader {
|
||||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
|
||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
||||
try {
|
||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
||||
} catch (Exception ex) {
|
||||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
|
||||
int dot = name.lastIndexOf('.');
|
||||
if (dot != -1) {
|
||||
|
||||
Reference in new issue
Block a user