Add isStellarRemnant to creator

This commit is contained in:
Noah Pilarski 2022-08-18 08:15:26 -04:00
parent 8fd93a30d4
commit 2fb3a39571

View File

@ -199,6 +199,17 @@ namespace NewHorizons.Handlers
return false; return false;
} }
} }
else if (body.Config.isStellarRemnant)
{
try
{
}
catch (Exception ex)
{
Logger.LogError($"Couldn't make stellar remnant for [{body.Config.name}]:\n{ex}");
return false;
}
}
else else
{ {
UpdateBody(body, existingPlanet); UpdateBody(body, existingPlanet);
@ -217,6 +228,11 @@ namespace NewHorizons.Handlers
// If the ground state object isn't made yet do it later // If the ground state object isn't made yet do it later
_nextPassBodies.Add(body); _nextPassBodies.Add(body);
} }
else if (body.Config.isStellarRemnant)
{
// If the star object isn't made yet do it later
_nextPassBodies.Add(body);
}
else else
{ {
try try