mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
Correct some magic values. This amends 1f83111208ab3612f384a2e6b65cc28423dc625e
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
parent
3565ea2eb8
commit
7ae60b3017
2 changed files with 2 additions and 5 deletions
|
@ -310,7 +310,9 @@ public class Potion {
|
|||
* item stacks.
|
||||
*
|
||||
* @return The damage value of this potion
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public short toDamageValue() {
|
||||
short damage;
|
||||
if (type == PotionType.WATER) {
|
||||
|
|
|
@ -58,11 +58,6 @@ public enum PotionType {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @deprecated Magic value
|
||||
*/
|
||||
@Deprecated
|
||||
public static PotionType getByEffect(PotionEffectType effectType) {
|
||||
if (effectType == null)
|
||||
return WATER;
|
||||
|
|
Loading…
Reference in a new issue