Don't clone if it's null. Fixes #1894

This commit is contained in:
GJ 2014-03-03 08:03:13 -05:00
parent 833bc1b251
commit 733d16cf35

View File

@ -54,7 +54,7 @@ public final class AlchemyPotionBrewer {
}
private static boolean removeIngredient(BrewerInventory inventory, Player player) {
ItemStack ingredient = inventory.getIngredient().clone();
ItemStack ingredient = inventory.getIngredient() == null ? null : inventory.getIngredient().clone();
if (isEmpty(ingredient) || !isValidIngredient(player, ingredient)) {
return false;