From 14cf9ced3bed6e15c1ef296fe6e0c042c8c55ad4 Mon Sep 17 00:00:00 2001 From: Noah Pilarski Date: Fri, 3 May 2024 08:40:02 -0400 Subject: [PATCH] Fix the solar system radius calculation needs to divide not multiply --- NewHorizons/Handlers/PlanetCreationHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NewHorizons/Handlers/PlanetCreationHandler.cs b/NewHorizons/Handlers/PlanetCreationHandler.cs index 75edb30a..d8e017b4 100644 --- a/NewHorizons/Handlers/PlanetCreationHandler.cs +++ b/NewHorizons/Handlers/PlanetCreationHandler.cs @@ -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;