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

Problem with Anvilinventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 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

            Unassigned Unassigned
            daysnico@gmail.com Nico Klein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: