mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +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:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user