[SPIGOT-3890] Problem with Anvilinventory Created: 08/Apr/18  Updated: 13/Apr/18  Resolved: 13/Apr/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Nico Klein Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: Inventory, Items, anvil

Plugin: My Plugin

 Description   

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



 Comments   
Comment by Black Hole [ 09/Apr/18 ]

Might be related to SPIGOT-2670

Generated at Fri Mar 14 09:35:31 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.