fix: account for current solar system

This commit is contained in:
FreezeDriedMangoes 2022-05-13 22:39:41 -04:00
parent b25156cf0b
commit b0a282d69f
2 changed files with 3 additions and 2 deletions

View File

@ -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<string, string> planetToConfigPath = new Dictionary<string, string>();
// Get all configs

View File

@ -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
};