fix compile error

This commit is contained in:
JohnCorby 2024-03-08 21:11:04 -08:00
parent 641084ae45
commit a5a068d32a
2 changed files with 404 additions and 404 deletions

View File

@ -26,7 +26,7 @@ namespace NewHorizons.Patches.ShipLogPatches
else else
{ {
__instance._astroObjects = navMatrix; __instance._astroObjects = navMatrix;
__instance._startingAstroObjectID = Main.SystemDict[Main.Instance.CurrentStarSystem].shipLogStartingPlanetID ?? navMatrix[1][0].GetID(); __instance._startingAstroObjectID = Main.SystemDict[Main.Instance.CurrentStarSystem].Config.shipLogStartingPlanetID ?? navMatrix[1][0].GetID();
if (Main.Instance.CurrentStarSystem != "SolarSystem") if (Main.Instance.CurrentStarSystem != "SolarSystem")
{ {
List<GameObject> delete = panRoot.GetAllChildren().Where(g => g.name.Contains("_ShipLog") == false).ToList(); List<GameObject> delete = panRoot.GetAllChildren().Where(g => g.name.Contains("_ShipLog") == false).ToList();