Entities displayed through the moon

Currently, when the moon is positioned between an entity and the camera view, the entity can be seen through the moon. I’ve gone through the Moon.js file but have not figured out how to make it so that entities are not viewed through the moon.
Appreciate the help,