Remove decorations prior to placing entities or tiles. In real life you would not build a house/road and leave the bushes below it, would you?
Small changes concerning balance, gameplay, or graphics.
Map generation and terrain modification.
I know you wrote that you tested in 0.17.2 but I see different.
https://lua-api.factorio.com/latest/LuaSurface.html#LuaSurface.destroy_decoratives
Seems to me that your destroy_decoratives(bbox) should be destroy_decoratives{area=bbox}. With this change the mod works fine for me and doesn't destroy every single decorative on the whole map when building something.
Yeah, tested only that removing works... and did not see that everything was removed. :/
ty. fixed.