mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
Include class path in legacy conversion errors.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -31,7 +31,7 @@ public interface UnsafeValues {
|
||||
|
||||
void checkSupported(PluginDescriptionFile pdf);
|
||||
|
||||
byte[] processClass(PluginDescriptionFile pdf, byte[] clazz);
|
||||
byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz);
|
||||
|
||||
/**
|
||||
* Load an advancement represented by the specified string into the server.
|
||||
|
@@ -100,11 +100,7 @@ final class PluginClassLoader extends URLClassLoader {
|
||||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
|
||||
try {
|
||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
||||
} catch (Exception ex) {
|
||||
throw new ClassNotFoundException(name, ex);
|
||||
}
|
||||
classBytes = loader.server.getUnsafe().processClass(description, path, classBytes);
|
||||
|
||||
int dot = name.lastIndexOf('.');
|
||||
if (dot != -1) {
|
||||
|
Reference in New Issue
Block a user