How the mining industry is adapting to climate change