It's not just about extreme weather, but also about pests and diseases that spread more easily in a warming climate. Food storage also becomes more crucial.
But the bottom line is that food becomes more expensive.
https://www.foodnavigator.com/Article/2023/10/19/eight-crops-endangered-by-climate-change