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

Crafting items using shift causes insufficient CraftItemEvent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Windows 7 with Java JDK 8

      Look at the attachements for example. I've got two iron ingots and two flints in my crafting menu. Now using shift + left click crafts two flint and steel. But there is only 1 CraftItemEvent called having the following content:

      [11:59:20] [Server thread/INFO]: event.getCurrentItem().getType() = FLINT_AND_STEEL
      [11:59:20] [Server thread/INFO]: event.getCurrentItem().getAmount() = 1
      [11:59:20] [Server thread/INFO]: event.getCurrentItem().getDurability() = 0

      I've also tested it with torches producing the same bug.

      That is a problem if you want to modify every item beeing crafted, like reducing durability of flint and steel.

        1. step1.PNG
          step1.PNG
          2 kB
        2. step2.PNG
          step2.PNG
          1 kB

            Unassigned Unassigned
            delta242 Lukas
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: