[1.8] Updating ItemStack Meta with NBT Tags

Status
This thread has been locked.

Anndrew

Premium
Feedback score
1
Posts
1
Reactions
23
Resources
0
Hello everyone,

I am currently working on a plugin that allows you to edit a item pool in-game via a config by right-clicking the item in the GUI if it has "Chance" anywhere on the lore. However, one issue I have ran into is that if the item has any NBT Tags, updating the Item's lore with the ItemMaker.addLore() method doesn't work at all. The method works on items that don't have any NBT tags so I am assuming it has something to do with items with NBT tags. Anyone know what I can do to fix this issue?

ItemMaker Class - https://sourceb.in/c98512219d
Updating the Item Lore if it doesn't include "Chance" - https://sourceb.in/47dff740aa
 
Status
This thread has been locked.
Top