k, I watched a tutorial about inventory item stacking.
The tutor is trying to stack items that are the same into an inventory slot.
He combines loop with loop. But wouldn’t that mean he has the same element of an array twice???
I dont know exactly how this works bc I am no expert, but to me it looks like loop 1 gets all elements of the array, and loop 2 gets the same elements, so that would mean
he wouldn instead of just looking which elements have the same name also compar Element 1 with itself, and element 2 with itself, etc.
Just looks weird, maybe it works different,
someone pls enlighten me
thx