// Proceed only if a CRAFTING or RESULT slot was clicked
if (slotType.equals(InventoryType.SlotType.CRAFTING) ||
slotType.equals(InventoryType.SlotType.RESULT)) {
CraftingInventory inventory = (CraftingInventory) event.getInventory();
Player player = (Player) event.getWhoClicked();
// If the RESULT slot was shift-clicked, emulate
// shift click behavior for it
if (slotType.equals(InventoryType.SlotType.RESULT) &&