• Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Affects Version/s: None
    • My Plugin

      Description:

      When trying to add an item to your Anvil inventory, the following problem occurs:

      The item is not displayed to the player. It does not seem to exist, a delay for adding the item is no solution. inv.setItem does not work. Cast Inventory to Anvilinventory does not work.

      My Code:

      Inventory inv=Bukkit.createInventory(null, InventoryType.ANVIL); 
      inv.addItem(new ItemStack(Material.NAME_TAG));
      p.openInventory(inv);
      

      Serverversion:

      "This server is running CraftBukkit version git-Spigot-b6ecf3b-9060bfa (MC: 1.12.2) (Implementing API version 1.12.2-R0.1-SNAPSHOT)
      You are running the latest version"

       

      Thanks a lot

            Assignee:
            Unassigned
            Reporter:
            Nico Klein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: