From d9c04a09ba850bff96e1e8fb80995dc174880057 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Sat, 15 Feb 2014 23:35:14 +0100 Subject: [PATCH] No need to clone here and it's not null checked Fixes #1864 --- .../com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6dc67683f..d45b92e05 100644 --- a/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java +++ b/src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java @@ -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;