mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed bug where shift right clicking potion ingredients was broken
This commit is contained in:
parent
cfa3d34dff
commit
cdfb0da5c9
@ -183,7 +183,10 @@ public class InventoryListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AlchemyPotionBrewer.transferItems(event.getView(), event.getRawSlot(), click);
|
if (!AlchemyPotionBrewer.transferItems(event.getView(), event.getRawSlot(), click)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
AlchemyPotionBrewer.scheduleUpdate(inventory);
|
AlchemyPotionBrewer.scheduleUpdate(inventory);
|
||||||
AlchemyPotionBrewer.scheduleCheck(player, stand);
|
AlchemyPotionBrewer.scheduleCheck(player, stand);
|
||||||
|
@ -161,7 +161,7 @@ public final class AlchemyPotionBrewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
from.setAmount(fromAmount - 1);
|
from.setAmount(fromAmount - 1);
|
||||||
view.setItem(Alchemy.INGREDIENT_SLOT, emptyTo ? null : to);
|
view.setItem(Alchemy.INGREDIENT_SLOT, to);
|
||||||
view.setItem(fromSlot, from);
|
view.setItem(fromSlot, from);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user