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

Beacon inventory getType() returns CHEST

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • git-Spigot-1eece4f-8879c31 (MC: 1.14)
    • Yes

      Code:
      @EventHandler
      private void DisableBeaconInventory(InventoryOpenEvent e) {
      System.out.print(e.getInventory().getType());
      if(e.getInventory().getType() == InventoryType.BEACON)

      { e.setCancelled(true); }

      }
      output in console:
      [14:16:29] [Server thread/INFO]: CHEST
      [14:16:31] [Server thread/INFO]: CHEST

            Unassigned Unassigned
            Dimitry Dmitry Alexandrov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: