Terrain and resource generation

I have the terrain and resource generation working but the resources are spawning above the planet apart from the planet that was already spawned in. They are all the same planet and use the same blueprints to spawn the resources and I can’t figure out why they’re spawning above the planet.
Pre spawned planet with working resource generation -

I know they’re slightly above but that’s fine for now

These are the planets that are spawned in through code and don’t have working resource generation -

This is the code used -

My second question is would it be possible to make the material I use to make the terrain be solid or shape the mesh to it so I can walk over it instead of going through it.