From b94fd7c7e4a1966a55c94587bc8376411efd2c78 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 30 Jul 2018 09:19:07 +1000 Subject: [PATCH] Include class path in legacy conversion errors. --- .../java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java index d7abc0f50b..045b5b4131 100644 --- a/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java +++ b/src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java @@ -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;