canItemStacksStack() will return false if the first stack is empty. This means if you try to insert an unstackable item into a non-smart requisition connected to a full container, it'll:
Shrink that first stack to being empty.
Fail to insert the split stack into the container.
Try to merge the first stack and the split stack.
Get false from canItemStacksStack() because the first stack is empty
Return the empty stack because of the return first, deleting the item you're trying to insert
canItemStacksStack()
will return false if the first stack is empty. This means if you try to insert an unstackable item into a non-smart requisition connected to a full container, it'll:false
fromcanItemStacksStack()
because the first stack is emptyreturn first
, deleting the item you're trying to insert