Sorry for late response.
Exactly, I get end slots and check if the item is in the right inventory slots.
As far as I understand from your questions, you’re using a different method for your inventory system. How did you handle grid-based inventory?