Item durability loops and is subtracted from items that fire BlockPlaceEvent

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • git-Spigot-6b015b4-79ada74 (MC: 1.13.1)
    • Yes

      To reproduce:

      In a plugin: cancel all BlockPlaceEvent events.

      1. Give yourself an item (hoe, axe)
      2. Use the item's right click on a valid block (grass/dirt for hoes, logs for axe, etc.)
      3. Observe that the item's durability has decreased.

      The durability also "loops," such that an item with 1 use left (249/250 durability) will be restored to full durability.

      1. /minecraft:give @p minecraft:iron_axe{Damage:249}
      2. Right-click log with axe.
      3. Observe that item now has full durability.

      Initially reported at https://github.com/TechFortress/GriefPrevention/issues/355

            Assignee:
            Unassigned
            Reporter:
            RoboMWM
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: