Production was hit by environmental extremes, from heavy rainfall in some regions to droughts, while global consumption fell.