Gravar-mail: The effect of climate change on the resilience of ecosystems with adaptive spatial pattern formation