From d8df20aca9609343691b074ce2f6f05a007132b6 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 17 Dec 2014 17:22:02 +0100 Subject: [PATCH] Fix the decoding of potions for Water. By: FearThe1337 --- paper-api/src/main/java/org/bukkit/potion/Potion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-api/src/main/java/org/bukkit/potion/Potion.java b/paper-api/src/main/java/org/bukkit/potion/Potion.java index 8966c906d4..edc9175464 100644 --- a/paper-api/src/main/java/org/bukkit/potion/Potion.java +++ b/paper-api/src/main/java/org/bukkit/potion/Potion.java @@ -395,7 +395,7 @@ public class Potion { public static Potion fromDamage(int damage) { PotionType type = PotionType.getByDamageValue(damage & POTION_BIT); Potion potion; - if (type == null || (type == PotionType.WATER && damage != 0)) { + if (type == null || type == PotionType.WATER) { potion = new Potion(damage & NAME_BIT); } else { int level = (damage & TIER_BIT) >> TIER_SHIFT;