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

Items in a Grindstone Inventory not showing on the client

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • None
    • None
    • git-Spigot-56f8471-7554e08
    • Yes

    Description

      When you create a Grindstone Inventory and put items inside, the items do not show on the client. However, when using inventory.getItem() the item is returned.

       

      Inventory inventory = Bukkit.createInventory(player, InventoryType.GRINDSTONE);
      inventory.setItem(0, new ItemStack(Material.DIAMOND_SWORD));
      player.openInventory(inventory);
      

      Running the following code

      inventory.getItem(0)
      

      Returns

      ItemStack{DIAMOND_SWORD x 1}
      

       

      Here is a minimal plugin to reproduce the issue

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Koenn Koen Willemse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: