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

In the BlockBreakEvent class, the method isDropItem() always return true

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Spigot-API 1.17.1-R0.1-SNAPSHOT API
    • Yes

    Description

      The method isDropItem() of the class BlockBreakEvent should gets whether or not the block will drop items, but always return true regardless of the resultat (e.g mining diamand_ore with a wooden_axe, aka the wrong tool,  dont drop item at all, but isDropItem() return true).

      encs : a  minimal reproduction plugin that show "The block drop a item" when isDropItem() is true and "The block dont drop a item" when isDropItem() is false, and the classes i make it.

       

       

      Attachments

        1. classes.txt
          0.6 kB
        2. testBug.jar
          3 kB

        Activity

          People

            Unassigned Unassigned
            OhnreiHen Ohnrei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: