Climate change is making droughts and floods more likely, threatening food supplies around the world.