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

Smithing Table and Anvil inventories .getType() returns CRAFTING

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • [22:06:29] [Server thread/INFO]: This server is running CraftBukkit version 3048-Bukkit-9db9aee (MC: 1.16.5) (Implementing API version 1.16.5-R0.1-SNAPSHOT) [22:06:29] [Server thread/INFO]: Checking version, please wait... [22:06:30] [Thread-20/INFO]: Yo
    • Yes

      This issue exists in both Spigot and CraftBukkit.

      When InventoryOpenEvent is called, the Inventory Type's default title is set to `Crafting` when opening Anvil and Smithing Tables. All other blocks I tested seem to work.

      Reproduce:

      @EventHandler
      public void onInventoryOpenEvent(InventoryOpenEvent event) {
        Player player = (Player) event.getPlayer();
        player.sendMessage(event.getInventory().getType().getDefaultTitle());
      }
      

            Unassigned Unassigned
            Prof_Bloodstone Prof Bloodstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: