Fixed bug with consuming stacks of items

Stack size was set to the amount consumed, rather than the remainder