This is actually comparing the world to locking wood and mud. Because in Buddhism, the world is a sea of suffering, and people have to cross the sea of suffering to reach the western paradise.
So this sentence is to encourage people to endure the pain in the world and finally reach a better shore.