No need to clone here and it's not null checked

Fixes #1864
This commit is contained in:
TfT_02 2014-02-15 23:35:14 +01:00
parent 04a02cfdc8
commit d9c04a09ba

View File

@ -101,7 +101,7 @@ public final class AlchemyPotionBrewer {
}
for (int i = 0; i < 3; i++) {
ItemStack item = inventory.getItem(i).clone();
ItemStack item = inventory.getItem(i);
if (isEmpty(item) || item.getType() == Material.GLASS_BOTTLE || !PotionConfig.getInstance().isValidPotion(item)) {
continue;