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

Workbench does show the result slot until send a player update

XMLWordPrintable

      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);

            Unassigned Unassigned
            lucasdidur Lucas Fernando Didur
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: