PotionMeta#hasCustomName
compatability
#11732
Labels
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
version: 1.21.4
Expected behavior
For
PotionMeta#hasCustomName
to return whether thePotionMeta
has a custom name.Observed/Actual behavior
PotionMeta#hasCustomName
seems to callItemMeta#hasCustomName
instead of thePotionMeta
deprecated redirect, I assume because the override inCraftMetaItem
takes priority?Steps/models to reproduce
Wrote a test plugin:
On latest Spigot:
On latest Paper:
Item used:
/give @s minecraft:potion[minecraft:potion_contents={custom_name:"shadow_walk"}]
Plugin and Datapack List
Paper version
Other
No response
The text was updated successfully, but these errors were encountered: