How do I prevent a item of the same class being picked up a second time?

(topic deleted by author)