Wrong item details when holding a lapis lazuli

XMLWordPrintable

    • Type: Bug
    • Resolution: Invalid
    • Priority: Minor
    • None
    • Environment:

      Windows 10, Java 13, Minecraft 1.15.2

    • 1.15.2
    • Yes

      I was working on a plugin and I realized that if you hold a lapis ore the API will tell you that you're holding an inc sack.

       

      public void onBlockBreak(BlockDamageEvent event) { 
          final Player player = (Player) event.getPlayer();
          final World world = (World) player.getWorld();
          final Material itemInHandType = event.getItemInHand().getType();
          final Material blockDestroyed = event.getBlock().getType();             player.sendMessage(itemInHandType.name());
      }

       

            Assignee:
            Unassigned
            Reporter:
            JekoJekoJeko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: