mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
SPIGOT-2229: Make PotionType.getDamageValue() attempt sane return.
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -43,7 +43,7 @@ public enum PotionType {
|
|||||||
public boolean isInstant() {
|
public boolean isInstant() {
|
||||||
return effect != null && effect.isInstant();
|
return effect != null && effect.isInstant();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if the potion type has an upgraded state.
|
* Checks if the potion type has an upgraded state.
|
||||||
* This refers to whether or not the potion type can be Tier 2,
|
* This refers to whether or not the potion type can be Tier 2,
|
||||||
@@ -64,13 +64,13 @@ public enum PotionType {
|
|||||||
public boolean isExtendable() {
|
public boolean isExtendable() {
|
||||||
return extendable;
|
return extendable;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Non-functional
|
* @deprecated Non-functional
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public int getDamageValue() {
|
public int getDamageValue() {
|
||||||
return 0;
|
return this.ordinal();
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getMaxLevel() {
|
public int getMaxLevel() {
|
||||||
|
Reference in New Issue
Block a user