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

NPE on opening shulker box inventory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • java version "1.8.0_101"
      Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
      Windows 10 Home 64bit

      Not able to open an inventory of a shulker box not placed(item stack).

      Sample code:

      Player player = /* ... */;
      ItemStack shulkerBox = /* ... */;
      BlockStateMeta meta = (BlockStateMeta) shulkerBox.getItemMeta();
      ShulkerBox state = (ShulkerBox) meta.getBlockState();
      player.openInventory(state.getInventory());
      

            Unassigned Unassigned
            toyblocks toyblocks
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: