From 7ae60b301774d242c90348b9857efc895baae3b8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Wed, 4 Sep 2013 17:01:02 -0500 Subject: [PATCH] Correct some magic values. This amends 1f83111208ab3612f384a2e6b65cc28423dc625e By: Wesley Wolfe --- paper-api/src/main/java/org/bukkit/potion/Potion.java | 2 ++ paper-api/src/main/java/org/bukkit/potion/PotionType.java | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) 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 43e5694ce1..0d44ce0b39 100644 --- a/paper-api/src/main/java/org/bukkit/potion/Potion.java +++ b/paper-api/src/main/java/org/bukkit/potion/Potion.java @@ -310,7 +310,9 @@ public class Potion { * item stacks. * * @return The damage value of this potion + * @deprecated Magic value */ + @Deprecated public short toDamageValue() { short damage; if (type == PotionType.WATER) { diff --git a/paper-api/src/main/java/org/bukkit/potion/PotionType.java b/paper-api/src/main/java/org/bukkit/potion/PotionType.java index 5913ad7616..dab02935f9 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionType.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionType.java @@ -58,11 +58,6 @@ public enum PotionType { return null; } - /** - * - * @deprecated Magic value - */ - @Deprecated public static PotionType getByEffect(PotionEffectType effectType) { if (effectType == null) return WATER;