Fixed bug where shift right clicking potion ingredients was broken

This commit is contained in:
TfT_02 2014-03-23 12:59:43 +01:00
parent cfa3d34dff
commit cdfb0da5c9
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -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;