Include class path in legacy conversion errors.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-07-30 09:19:07 +10:00
parent 9735d97608
commit 2a1c32b754

View file

@ -210,11 +210,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
}
@Override
public byte[] processClass(PluginDescriptionFile pdf, byte[] clazz) {
public byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz) {
try {
clazz = Commodore.convert(clazz, !isLegacy(pdf));
} catch (Exception ex) {
Bukkit.getLogger().log(Level.SEVERE, "Fatal error trying to convert " + pdf.getFullName(), ex);
Bukkit.getLogger().log(Level.SEVERE, "Fatal error trying to convert " + pdf.getFullName() + ":" + path, ex);
}
return clazz;