[SPIGOT-2611] Workbench does show the result slot until send a player update Created: 18/Aug/16  Updated: 18/Aug/16  Resolved: 18/Aug/16

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

Type: Bug Priority: Minor
Reporter: Lucas Fernando Didur Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: event, inventory, inventory-update, spigot


 Description   

When I try to create a custom menu, the server does not send a player update automatic, I need to send a player.updateInventory() delayed with 2 ticks to show the item on result slot. This is normal?

Inventory inv = Bukkit.createInventory(event.getPlayer(), InventoryType.WORKBENCH);
inv.setItem(0, new ItemStack(Material.ACACIA_DOOR));
event.getPlayer().openInventory(inv);



 Comments   
Comment by md_5 [ 18/Aug/16 ]

Probably a case of client side prediction overruling what you put in the slot, so yes.

Generated at Sat Dec 13 15:19:14 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.