From 7f9ada14c81c69531a0896868d594e6c55ead0a8 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 15 Feb 2014 01:37:41 +0100 Subject: [PATCH] Schedule check after putting a new bottle in the brewing stand --- .../java/com/gmail/nossr50/listeners/InventoryListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java index d5b4d1e3a..8f90b84f0 100644 --- a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java @@ -163,8 +163,9 @@ public class InventoryListener implements Listener { Player player = (Player) whoClicked; BrewingStand stand = (BrewingStand) holder; ItemStack clicked = event.getCurrentItem(); + ItemStack cursor = event.getCursor(); - if (clicked != null && clicked.getType() == Material.POTION) { + if ((clicked != null && clicked.getType() == Material.POTION) || (cursor != null && cursor.getType() == Material.POTION)) { AlchemyPotionBrewer.scheduleCheck(player, stand); return; } @@ -193,7 +194,6 @@ public class InventoryListener implements Listener { } } else if (slot == InventoryType.SlotType.FUEL) { - ItemStack cursor = event.getCursor(); boolean emptyClicked = AlchemyPotionBrewer.isEmpty(clicked); if (AlchemyPotionBrewer.isEmpty(cursor)) {