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

This commit is contained in:
md_5 2016-05-02 18:24:07 +10:00
parent 2a1d9d6033
commit d19bb5b8c5

View file

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