diff --git a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java index 779eaee6a..00d8fe3d1 100644 --- a/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/InventoryListener.java @@ -183,7 +183,10 @@ public class InventoryListener implements Listener { return; } - AlchemyPotionBrewer.transferItems(event.getView(), event.getRawSlot(), click); + if (!AlchemyPotionBrewer.transferItems(event.getView(), event.getRawSlot(), click)) { + return; + } + event.setCancelled(true); AlchemyPotionBrewer.scheduleUpdate(inventory); AlchemyPotionBrewer.scheduleCheck(player, stand); diff --git a/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java b/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java index d61592e98..5890095eb 100644 --- a/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java +++ b/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java @@ -161,7 +161,7 @@ public final class AlchemyPotionBrewer { } from.setAmount(fromAmount - 1); - view.setItem(Alchemy.INGREDIENT_SLOT, emptyTo ? null : to); + view.setItem(Alchemy.INGREDIENT_SLOT, to); view.setItem(fromSlot, from); return true;