소스 검색

Actually fix the isWaterBottle() check

Fixes #2134

For some reason Bukkit wanted to use Potion(PotionType type, int level)
when calling .toPotion(), even though .getDataValue() is 0.
TfT_02 11 년 전
부모
커밋
6b9f6c29ec
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/gmail/nossr50/datatypes/skills/alchemy/PotionStage.java

+ 1 - 1
src/main/java/com/gmail/nossr50/datatypes/skills/alchemy/PotionStage.java

@@ -39,7 +39,7 @@ public enum PotionStage {
     }
 
     private static boolean isWaterBottle(AlchemyPotion input) {
-        return input.toPotion(1).getEffects().isEmpty();
+        return input.getDataValue() == 0;
     }
 
     public static PotionStage getPotionStage(AlchemyPotion alchemyPotion) {