SpigotMC/Spigot — pull request #197 by drXor (2014-07-18 01:21:24+00:00)
Title: Fix enchanting tables wiping meta when stacked items are placed in them

Vanilla bug.
Enchanting tables will only accept a item of amount 1 in their main slot. Currently, if an item with more than one in amount is placed in a table, it will wipe all data (name, lore, etc.) from the item taken out of the stack and placed in the table's slot. This PR fixes this bug, since it can potentially be abused to remove metadata from items to break custom functionality relying on the metadata.