From b0a282d69f1ea1a3c142bd98f4dfce5b7ec3ddd0 Mon Sep 17 00:00:00 2001 From: FreezeDriedMangoes Date: Fri, 13 May 2022 22:39:41 -0400 Subject: [PATCH] fix: account for current solar system --- NewHorizons/Utility/DebugMenu.cs | 3 ++- NewHorizons/Utility/DebugPropPlacer.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NewHorizons/Utility/DebugMenu.cs b/NewHorizons/Utility/DebugMenu.cs index a4dee0eb..25e88609 100644 --- a/NewHorizons/Utility/DebugMenu.cs +++ b/NewHorizons/Utility/DebugMenu.cs @@ -247,8 +247,9 @@ namespace NewHorizons.Utility Logger.Log("updating configs"); - Logger.Log("New Details keys: " + string.Join(", ", newDetails.Keys)); + Logger.Log("New Details Counts by planet: " + string.Join(", ", newDetails.Keys.Select(x => x + $" ({newDetails[x].Length})"))); + // TODO: looks like placing the first prop on a given planet in a given session clears out all existing props on that planet Dictionary planetToConfigPath = new Dictionary(); // Get all configs diff --git a/NewHorizons/Utility/DebugPropPlacer.cs b/NewHorizons/Utility/DebugPropPlacer.cs index 81549a05..62ddadc1 100644 --- a/NewHorizons/Utility/DebugPropPlacer.cs +++ b/NewHorizons/Utility/DebugPropPlacer.cs @@ -209,7 +209,7 @@ namespace NewHorizons.Utility { body = bodyName, gameObject = prop, - system = systemName == null ? "SolarSystem" : systemName, + system = systemName == null ? Main.Instance.CurrentStarSystem : systemName, detailInfo = detailInfo };