Include class path in legacy conversion errors.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2018-07-30 09:18:55 +10:00
parent 246fed61ca
commit f3f25a351f
2 changed files with 2 additions and 6 deletions

View File

@ -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.

View File

@ -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) {