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

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: 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. classes.txt
          0.6 kB
        2. testBug.jar
          3 kB

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

              Created:
              Updated:
              Resolved: