}
private void drawCelestialBodies(CelestialBody body, float ticks)
{
Star star = null;
SolarSystem solarSystem = null;
if (body instanceof Planet)
solarSystem = ((Planet)body).getParentSolarSystem();
else if (body instanceof Moon)
solarSystem = ((Moon)body).getParentPlanet().getParentSolarSystem();
else if (body instanceof Satellite)
solarSystem = ((Satellite)body).getParentPlanet().getParentSolarSystem();
if (solarSystem == null)
solarSystem = GalacticraftCore.solarSystemSol;
star = solarSystem.getMainStar();
if (star != null && star.getBodyIcon() != null)
{
this.drawCelestialBody(star, 0F, 0F, ticks, 6F);
}
String mainSolarSystem = solarSystem.getUnlocalizedName();
for (Planet planet : GalaxyRegistry.getRegisteredPlanets().values())
{
if (planet.getParentSolarSystem() != null && planet.getBodyIcon() != null)
{
if (planet.getParentSolarSystem().getUnlocalizedName().equalsIgnoreCase(mainSolarSystem))