More Planets - Galacticraft Add-on

More Planets - Galacticraft Add-on

5M Downloads

The star color of Lazendus is white in the galaxy map of AsmodeusCore. Image attached.

Varaxia opened this issue ยท 2 comments

commented

I was searching for the issue on the GlaaxySpace discord server, and came across the following piece of code that may prove useful:

if(Loader.isModLoaded("asmodeuscore")){
  BodiesData data = new BodiesData(TypeBody.STAR).setStarClass(StarClass.DWARF).setStarColor(StarColor.RED);
  BodiesRegistry.registerBodyData(HERE LAZENDUS STAR, data);
}

image

commented

Hey, not sure what I'm doing wrong it doesn't work for some reason. The star still not red, my code is already in the preInit.

        if (Loader.isModLoaded("asmodeuscore"))
        {
            BodiesData data = new BodiesData(IAdvancedSpace.TypeBody.STAR)
                    .setStarClass(IAdvancedSpace.StarClass.GIANT)
                    .setStarColor(IAdvancedSpace.StarColor.RED);
            BodiesRegistry.registerBodyData(MPPlanets.LAZENDUS, data);
        }
commented

Oh well nvm, my code is garbage.

Image