Fix the solar system radius calculation

needs to divide not multiply
This commit is contained in:
Noah Pilarski 2024-05-03 08:40:02 -04:00
parent fb9e10fee7
commit 14cf9ced3b

View File

@ -928,7 +928,7 @@ namespace NewHorizons.Handlers
}
// Uses the ratio of the interlopers furthest point to what the base game considers the edge of the solar system
var distanceToCenter = go.transform.position.magnitude * (24000 / 30000f);
var distanceToCenter = go.transform.position.magnitude / (24000 / 30000f);
if (distanceToCenter > SolarSystemRadius)
{
SolarSystemRadius = distanceToCenter;