From 0c9f5e899215c52d6106d87d3896a5ce80a3b956 Mon Sep 17 00:00:00 2001 From: glen3b Date: Fri, 2 May 2014 19:44:33 -0700 Subject: [PATCH] Update MinecraftReflection exception messages The messages incorrectly identified the minecraft server package as "net.mineraft.server" This commit fixes that Although it is only a minor spelling error, it is worth fixing --- .../com/comphenix/protocol/utility/MinecraftReflection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java b/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java index f356e5e2..cb6bfd4d 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/utility/MinecraftReflection.java @@ -1787,7 +1787,7 @@ public class MinecraftReflection { if (!craftItemStackFailed) return getBukkitItemByMethod(minecraftItemStack); - throw new RuntimeException("Cannot find CraftItemStack(net.mineraft.server.ItemStack).", e); + throw new RuntimeException("Cannot find CraftItemStack(net.minecraft.server.ItemStack).", e); } } @@ -1805,7 +1805,7 @@ public class MinecraftReflection { craftNMSMethod = getCraftItemStackClass().getMethod("asCraftMirror", minecraftItemStack.getClass()); } catch (Exception e) { craftItemStackFailed = true; - throw new RuntimeException("Cannot find CraftItemStack.asCraftMirror(net.mineraft.server.ItemStack).", e); + throw new RuntimeException("Cannot find CraftItemStack.asCraftMirror(net.minecraft.server.ItemStack).", e); } }