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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Spigot-API 1.17.1-R0.1-SNAPSHOT API
    • Yes

      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.

       

       

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

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

              Created:
              Updated:
              Resolved: