mkremins / fanciful

Fancy Bukkit message formatting
MIT License
95 stars 82 forks source link

itemTooltip(ItemStack) doesn't seem to respect damage values for items #59

Closed frymaster closed 9 years ago

frymaster commented 9 years ago

if I create a potion with e.g.

new ItemStack(373,1, 8621,0)

...and pass that into the itemTooltip method, the tooltip is not respecting the damage value and is just showing a water bottle

What I should see What I actually see

It does respect data values for block items

frymaster commented 9 years ago

Invalid issue - turns out when creating an ItemStack that "0" as the data parameter overrides "8621" as the damage parameter - the correct thing to do is to set it to null apparently