mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Schedule an Alchemy check after using a hotkey to add ingredients
Fixes #1834
This commit is contained in:
parent
a2e32179bb
commit
4486261413
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user