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

Item lores no longer being displayed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • git-Spigot-d4cbb64-2361cb8 (MC: 1.16.1)
    • Yes

    Description

      Consider the following piece of code to create an item lore in an inventory:

      Inventory inventory = Bukkit.createInventory(null, 18, "some title");
      ItemStack item = new ItemStack(Material.ACACIA_WOOD);
      ItemMeta itemMeta = item.getItemMeta();
      itemMeta.setLore(Arrays.asList("§8[§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8| §8§o0/100 §8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5|§8|§5]"));
      item.setItemMeta(itemMeta);
      inventory.setItem(0, item);
      ((Player) event.getWhoClicked()).openInventory(inventory);
      

      The lore may seem like a somewhat contrived example, but illustrates the kind of progress bar that are displayed by the Advanced Achievements plugin.

      The above code works fine with Spigot 1.15 and any version going back to at least 1.7, but no longer works with version 1.16: the lore is not displayed at all anymore.

      Is this a problem with Spigot, or is it a new client-side limitation?

      Thanks for reading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            DarkPyves Pyves
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: