Looking at Krastorio 2, this compatibility fix looks technically easy, but I'm not a Krastorio player. I'm submitting a fix which sets all resources to yield mode, to remain true to my mod's name. Please let me know if this fix is inappropriate for Krastorio 2. I can do something else, like set just the quarry resource (imersite) to yield mode.
Also, I'm assuming you want compatibility with Krastorio 2. I see there are several legacy and tweaked versions of Krastorio floating around. I won't have a look at those unless someone requests.