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

BlockDispenseEvent bug with dropper.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • CraftBukkit version 3475-Spigot-ffceeae-b5559f8 (MC: 1.18.2) (Implementing API version 1.18.2-R0.1-SNAPSHOT)
    • Yes

       

      This code will start a fire, instead of just drop flint&steel:

      @EventHandler
      public void onBlockDispense(BlockDispenseEvent event) {
          if (event.getBlock().getState() instanceof Dropper) {
              // Its a dropper (not dispenser)
              event.setItem(new ItemStack(Material.FLINT_AND_STEEL));
          }
      } 

       

            Unassigned Unassigned
            Abcik Sergey Maliy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: