SPIGOT-2229: Make PotionType.getDamageValue() attempt sane return.

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2016-05-02 18:24:07 +10:00
parent a64729191f
commit 2b3b83636e

View file

@ -70,7 +70,7 @@ public enum PotionType {
*/
@Deprecated
public int getDamageValue() {
return 0;
return this.ordinal();
}
public int getMaxLevel() {