If you try to put two different items into an anvil (such as a gold iron pickaxe and a stone sword), it will combine the items as if they were the same. This issue occurs on paperspigot and regular spigot on the latest versions of EnchantmentAPI and spigot.
Image is here