Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4416

Enchantments Disappear

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • None
    • None
    • 1.13.1
    • Yes

      Hello, 
      I spent a good hour working on my new plugin and tried implementing an old Glow method found here: https://github.com/kicjow/Crazy-Crates/blob/5e032178ce07d2d2fc700d86abaa47373ccfa268/src/main/java/me/badbones69/crazycrates/api/objects/ItemBuilder.java#L400v
      This method did not work as the enchantments would vanish after setting ItemMeta. I printed out the keySet of enchantments after adding DURABILITY and LUCK to stone and it was nothing. But setting the ItemMeta before adding unsafe enchantments will work as seen in this post: https://www.spigotmc.org/threads/adding-glow-to-items-in-1-13.342143/

            Unassigned Unassigned
            DiamondDagger590 Coleman Yantis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: