summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-07-30 09:19:07 +1000
committermd_5 <git@md-5.net>2018-07-30 09:19:07 +1000
commitb94fd7c7e4a1966a55c94587bc8376411efd2c78 (patch)
tree1a053d7bd643602cf5a9a791cc1121ea8eb9be1a /src
parent3b8f5be77be456fa291a8089ba10ddbad1cb82b6 (diff)
downloadcraftbukkit-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.java4
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;