diff options
author | md_5 <git@md-5.net> | 2018-07-30 09:19:07 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-30 09:19:07 +1000 |
commit | b94fd7c7e4a1966a55c94587bc8376411efd2c78 (patch) | |
tree | 1a053d7bd643602cf5a9a791cc1121ea8eb9be1a /src | |
parent | 3b8f5be77be456fa291a8089ba10ddbad1cb82b6 (diff) | |
download | craftbukkit-b94fd7c7e4a1966a55c94587bc8376411efd2c78.tar craftbukkit-b94fd7c7e4a1966a55c94587bc8376411efd2c78.tar.gz craftbukkit-b94fd7c7e4a1966a55c94587bc8376411efd2c78.tar.lz craftbukkit-b94fd7c7e4a1966a55c94587bc8376411efd2c78.tar.xz craftbukkit-b94fd7c7e4a1966a55c94587bc8376411efd2c78.zip |
Include class path in legacy conversion errors.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/util/CraftMagicNumbers.java | 4 |
1 files 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 d7abc0f5..045b5b41 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; |