Bukkit/CraftBukkit — pull request #1130 by andrepl (2013-04-06 16:02:53+00:00)
Title: [C] Include result slot in CraftInventoryAnvil.getItem .Fixes BUKKIT-2788

Currently the AnvilInventory throws an IndexOutOfBounds exception when attempting to access the result slot (2). This commit overrides getItem to get the slot from the ResultInventory if the requested slot is beyond the size of the IngredientInventory.