Set current recipe to null when a recipe isn't found. Fixes BUKKIT-2311

This commit restores the diff from 84dbc21aa71b96fd1d2ea40d624b536309118cde
that has since been lost.
This commit is contained in:
T00thpick1 2013-08-12 10:47:42 -04:00 committed by Travis Ralston
parent 4667e9493c
commit cd593fb1ee

View file

@ -295,6 +295,7 @@ public class CraftingManager {
}
}
inventorycrafting.currentRecipe = null; // CraftBukkit - Clear recipe when no recipe is found
return null;
}
}