Schedule an Alchemy check after using a hotkey to add ingredients

Fixes #1834
This commit is contained in:
TfT_02 2014-02-07 13:39:24 +01:00
parent a2e32179bb
commit 4486261413

View File

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