Bukkit/CraftBukkit — pull request #899 by AlphaBlend (2012-10-05 19:37:13+00:00)
Title: When a block is broken, check if the tool being used will be damaged

When breaking a block, check to see if the tool in hand can be damaged.

Associated bukkit-bleeding commit here: https://github.com/Bukkit/Bukkit/pull/688