Bukkit/CraftBukkit — pull request #998 by TriPhoenix (2013-01-20 14:45:48+00:00)
Title: BUKKIT-3410 Anvil cost calculation not consistent with minecraft server/client

This leads to cases where some more rare enchantment books (e.g. Unbreaking III) do require more XP levels on the bukkit server side than on the client side, which results in the enchantment not occuring. This fix brings back a consistent behaviour.