mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-02 11:22:01 +01:00
Include class path in legacy conversion errors.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
246fed61ca
commit
f3f25a351f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user