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.