setDurability doesn't break item at breakpoint

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      In Bukkit and old versions of Spigot this has worked.

      setDurability() metod on an axe (ItemStack from player.getItemInHand()) does no longer break the item when the durability value is larger than the items breakpoint anymore.

      Breakpoints;

      • Gold - 33 uses
      • Wood - 60 uses
      • Stone - 132 uses
      • Iron - 251 uses
      • Diamond - 1562 uses

      Source code for my plugin using this; https://github.com/enjikaka/WoodCutter/blob/master/src/se/enji/WoodCutter.java#L102

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

              Created:
              Updated: