From 2b3b83636ec77f55e2a203a71eca9f05e4132e7f Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Mon, 2 May 2016 18:24:07 +1000 Subject: [PATCH] SPIGOT-2229: Make PotionType.getDamageValue() attempt sane return. By: md_5 --- paper-api/src/main/java/org/bukkit/potion/PotionType.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 95f238a3fc..60470b88cf 100644 --- a/paper-api/src/main/java/org/bukkit/potion/PotionType.java +++ b/paper-api/src/main/java/org/bukkit/potion/PotionType.java @@ -43,7 +43,7 @@ public enum PotionType { public boolean isInstant() { return effect != null && effect.isInstant(); } - + /** * Checks if the potion type has an upgraded state. * This refers to whether or not the potion type can be Tier 2, @@ -64,13 +64,13 @@ public enum PotionType { public boolean isExtendable() { return extendable; } - + /** * @deprecated Non-functional */ @Deprecated public int getDamageValue() { - return 0; + return this.ordinal(); } public int getMaxLevel() {