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

Item Frame NBT data disappears

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • git-Spigot-0287a20-7560f5f 1.16.1
    • Yes

      When giving yourself an Item Frame using this command:

        "/minecraft:give @s item_frame{EntityTag:{Invisible:1}}"

      And then spam clicking that item on top of a regular Item Frame in your inventory eventually the NBT disappears and the items stack. Also, sometimes weird client desync happens, where they stack and unstack, but eventually the NBT is actually gone from the item. This has been tested to happen in Creative and Survival mode.

       

      Additionally, when getting an ItemStack with the invisible:1 EntityTag from InventoryClickEvent#getCursor the mentioned NBT tag never appears in the gotten ItemStack. The same thing happens when trying to get the ItemStack from the players hand while they hold the special NBT Item Frame using this:

      ItemStack hand = p.getInventory().getItemInMainHand();

      The returned ItemStack does not have the NBT tag

        1. BUG.mp4
          1.11 MB
          Jason Penilla

            Unassigned Unassigned
            jmp Jason Penilla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: