The effect of climate change on the resilience of ecosystems with adaptive spatial pattern formation. (7th January 2020)