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.
This commit is contained in:
TfT_02 2014-07-17 00:14:06 +02:00
parent 09b0bf62e2
commit 6b9f6c29ec

View File

@ -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) {