Bukkit/CraftBukkit — pull request #1229 by t00thpick1 (2013-08-12 14:59:11+00:00)
Title: Reimplement 84dbc21aa71b96fd1d2ea40d624b536309118cde   Fixes BUKKIT-1456

**The Issue:**
CraftItemEvent triggers when you click the empy result slot only after you crafted something in it, even if you have or not a result or ingredients, it still triggers and getRecipe() returns the last recipe because there isn't a "current" one.

This issue was fixed in 1.2.5 but during various updates since then, the patch was lost, causing the issue to resurface.

**PR Breakdown:**
This commit simply reimplements a fix that was already made but lost in the update process.