Browse Source

Schedule an Alchemy check after using a hotkey to add ingredients

Fixes #1834
TfT_02 11 years ago
parent
commit
4486261413

+ 5 - 0
src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java

@@ -230,6 +230,7 @@ public final class AlchemyPotionBrewer {
 
 
             return;
             return;
         }
         }
+
         if (event.isShiftClick()) {
         if (event.isShiftClick()) {
             if (event.getSlotType() == SlotType.FUEL) {
             if (event.getSlotType() == SlotType.FUEL) {
                 scheduleCheck(player, brewingStand);
                 scheduleCheck(player, brewingStand);
@@ -256,6 +257,10 @@ public final class AlchemyPotionBrewer {
         }
         }
         else if (event.getRawSlot() == INGREDIENT_SLOT) {
         else if (event.getRawSlot() == INGREDIENT_SLOT) {
             if (isEmpty(cursor) && isEmpty(clicked)) {
             if (isEmpty(cursor) && isEmpty(clicked)) {
+                if (event.getClick() == ClickType.NUMBER_KEY) {
+                    scheduleCheck(player, brewingStand);
+                    return;
+                }
                 return;
                 return;
             }
             }
             else if (isEmpty(cursor)) {
             else if (isEmpty(cursor)) {