소스 검색

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

Fixes #1864
TfT_02 11 년 전
부모
커밋
d9c04a09ba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/gmail/nossr50/skills/alchemy/AlchemyPotionBrewer.java

+ 1 - 1
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;