Cotton adapting to climate change