Correct some magic values. This amends 1f83111208ab3612f384a2e6b65cc28423dc625e
This commit is contained in:
parent
e163e5504b
commit
b4a12b30d3
@ -310,7 +310,9 @@ public class Potion {
|
|||||||
* item stacks.
|
* item stacks.
|
||||||
*
|
*
|
||||||
* @return The damage value of this potion
|
* @return The damage value of this potion
|
||||||
|
* @deprecated Magic value
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public short toDamageValue() {
|
public short toDamageValue() {
|
||||||
short damage;
|
short damage;
|
||||||
if (type == PotionType.WATER) {
|
if (type == PotionType.WATER) {
|
||||||
|
@ -58,11 +58,6 @@ public enum PotionType {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @deprecated Magic value
|
|
||||||
*/
|
|
||||||
@Deprecated
|
|
||||||
public static PotionType getByEffect(PotionEffectType effectType) {
|
public static PotionType getByEffect(PotionEffectType effectType) {
|
||||||
if (effectType == null)
|
if (effectType == null)
|
||||||
return WATER;
|
return WATER;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user