Commits

md_5 authored 30dc3e37252
Update deprecation message for PotionMeta.setMainEffect
No tags

src/main/java/org/bukkit/inventory/meta/PotionMeta.java

Modified
73 73 */
74 74 boolean hasCustomEffect(@NotNull PotionEffectType type);
75 75
76 76 /**
77 77 * Moves a potion effect to the top of the potion effect list.
78 78 * <p>
79 79 * This causes the client to display the potion effect in the potion's name.
80 80 *
81 81 * @param type the potion effect type to move
82 82 * @return true if the potion meta changed as a result of this call
83 - * @deprecated use {@link org.bukkit.potion.PotionType#PotionType}
83 + * @deprecated use {@link #setBasePotionData(org.bukkit.potion.PotionData)}
84 84 */
85 85 @Deprecated
86 86 boolean setMainEffect(@NotNull PotionEffectType type);
87 87
88 88 /**
89 89 * Removes all custom potion effects from this potion.
90 90 *
91 91 * @return true if the potion meta changed as a result of this call
92 92 */
93 93 boolean clearCustomEffects();

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut