mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 08:56:23 +01:00
Include class path in legacy conversion errors.
This commit is contained in:
parent
3b8f5be77b
commit
b94fd7c7e4
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue