Need help with something regarding dropping items from an Inventory

I figured it out. I was passing the item type which
was dropping everything from that category