mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
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:
parent
09b0bf62e2
commit
6b9f6c29ec
@ -39,7 +39,7 @@ public enum PotionStage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isWaterBottle(AlchemyPotion input) {
|
private static boolean isWaterBottle(AlchemyPotion input) {
|
||||||
return input.toPotion(1).getEffects().isEmpty();
|
return input.getDataValue() == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static PotionStage getPotionStage(AlchemyPotion alchemyPotion) {
|
public static PotionStage getPotionStage(AlchemyPotion alchemyPotion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user