mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-19 21:48:48 +01:00
Include class path in legacy conversion errors.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
9735d97608
commit
2a1c32b754
1 changed files with 2 additions and 2 deletions
|
@ -210,11 +210,11 @@ public final class CraftMagicNumbers implements UnsafeValues {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public byte[] processClass(PluginDescriptionFile pdf, byte[] clazz) {
|
public byte[] processClass(PluginDescriptionFile pdf, String path, byte[] clazz) {
|
||||||
try {
|
try {
|
||||||
clazz = Commodore.convert(clazz, !isLegacy(pdf));
|
clazz = Commodore.convert(clazz, !isLegacy(pdf));
|
||||||
} catch (Exception ex) {
|
} 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;
|
return clazz;
|
||||||
|
|
Loading…
Add table
Reference in a new issue