mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 08:32:07 -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);
|
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.
|
* 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);
|
throw new ClassNotFoundException(name, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
classBytes = loader.server.getUnsafe().processClass(description, path, classBytes);
|
||||||
classBytes = loader.server.getUnsafe().processClass(description, classBytes);
|
|
||||||
} catch (Exception ex) {
|
|
||||||
throw new ClassNotFoundException(name, ex);
|
|
||||||
}
|
|
||||||
|
|
||||||
int dot = name.lastIndexOf('.');
|
int dot = name.lastIndexOf('.');
|
||||||
if (dot != -1) {
|
if (dot != -1) {
|
||||||
|
Reference in New Issue
Block a user