Merge pull request #47 from glen3b/patch-1

Update MinecraftReflection exception messages
This commit is contained in:
Kristian S. Stangeland 2014-05-03 19:25:35 +02:00
commit a6dfa60d79

View File

@ -1820,7 +1820,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);
}
}
@ -1838,7 +1838,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);
}
}