Don't need this

This commit is contained in:
Noah Pilarski 2022-08-18 15:17:50 -04:00
parent 7493b20a8f
commit 9c0966b5b8
2 changed files with 4 additions and 4 deletions

View File

@ -49,7 +49,7 @@ namespace NewHorizons.Builder.Body
var alignmentRadius = stellarRemnant.Config.Atmosphere?.clouds?.outerCloudRadius ?? 1.5f * stellarRemnant.Config.Base.surfaceSize;
if (stellarRemnant.Config.Base.surfaceGravity == 0) alignmentRadius = 0;
stellarRemnantController.SetAlignmentRadius(alignmentRadius);
PlanetCreationHandler.SharedGenerateBody(stellarRemnant, go, sector, rb, true);
PlanetCreationHandler.SharedGenerateBody(stellarRemnant, go, sector, rb);
}
else
{

View File

@ -470,7 +470,7 @@ namespace NewHorizons.Handlers
}
// What is called both on existing planets and new planets
internal static GameObject SharedGenerateBody(NewHorizonsBody body, GameObject go, Sector sector, OWRigidbody rb, bool isStellarRemnant = false)
internal static GameObject SharedGenerateBody(NewHorizonsBody body, GameObject go, Sector sector, OWRigidbody rb)
{
var sphereOfInfluence = GetSphereOfInfluence(body);
@ -501,14 +501,14 @@ namespace NewHorizons.Handlers
if (body.Config.Star != null)
{
if (isStellarRemnant)
if (body.Config.isStellarRemnant)
{
sector.GetComponent<StellarRemnantController>().SetStarController(StarBuilder.Make(go, sector, body.Config.Star, body.Mod, true));
}
else
{
StarLightController.AddStar(StarBuilder.Make(go, sector, body.Config.Star, body.Mod, false));
StellarRemnantBuilder.Make(body, go, rb, body.Mod, Main.BodyDict[body.Config.starSystem].Where(x => x.Config.name == body.Config.name && body.Config.isStellarRemnant).FirstOrDefault());
StellarRemnantBuilder.Make(body, go, rb, body.Mod, Main.BodyDict[body.Config.starSystem].Where(x => x.Config.name == body.Config.name && x.Config.isStellarRemnant).FirstOrDefault());
}
}