mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-21 05:44:17 +00:00
SPIGOT-2229: Make PotionType.getDamageValue() attempt sane return.
This commit is contained in:
parent
2a1d9d6033
commit
d19bb5b8c5
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue