diff --git a/NewHorizons/Builder/Body/StellarRemnantBuilder.cs b/NewHorizons/Builder/Body/StellarRemnantBuilder.cs index a5b0d2c2..31ea505a 100644 --- a/NewHorizons/Builder/Body/StellarRemnantBuilder.cs +++ b/NewHorizons/Builder/Body/StellarRemnantBuilder.cs @@ -65,8 +65,8 @@ namespace NewHorizons.Builder.Body private static StellarRemnantType GetDefault(float progenitorSize) { - if (progenitorSize >= blackholeSize) return StellarRemnantType.BlackHole; - else if (neutronStarSize < progenitorSize && progenitorSize < blackholeSize) return StellarRemnantType.NeutronStar; + if (progenitorSize > blackholeSize) return StellarRemnantType.BlackHole; + else if (neutronStarSize < progenitorSize && progenitorSize <= blackholeSize) return StellarRemnantType.NeutronStar; else return StellarRemnantType.WhiteDwarf; } @@ -74,7 +74,7 @@ namespace NewHorizons.Builder.Body { if (star.stellarDeathType == StellarDeathType.None) return false; - return !(star.stellarRemnantType == StellarRemnantType.Default && star.size < whiteDwarfSize); + return !(star.stellarRemnantType == StellarRemnantType.Default && star.size <= whiteDwarfSize); } private static GameObject MakeWhiteDwarf(GameObject planetGO, Sector sector, IModBehaviour mod, StarModule progenitor, GameObject proxy = null)