mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
SPIGOT-2229: Make PotionType.getDamageValue() attempt sane return.
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a64729191f
commit
2b3b83636e
1 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue