Fix autocrafter not taking enough items if number of needed items of a kind > stack max for that item.