Added missing semicolon

This commit is contained in:
Magnus 2024-08-05 12:13:51 -07:00
parent a8c4641743
commit 1fa4664b34

View File

@ -144,7 +144,7 @@ namespace NewHorizons
{ {
var planet = Main.BodyDict[Main.Instance.CurrentStarSystem].Find((b) => b.Config.name == bodyName); var planet = Main.BodyDict[Main.Instance.CurrentStarSystem].Find((b) => b.Config.name == bodyName);
if (planet == null){ if (planet == null){
NHLogger.LogError($"Could not find planet with body name {bodyName}.") NHLogger.LogError($"Could not find planet with body name {bodyName}.");
return null; return null;
} }
return QueryJson(outType, Path.Combine(planet.Mod.ModHelper.Manifest.ModFolderPath, planet.RelativePath), jsonPath); return QueryJson(outType, Path.Combine(planet.Mod.ModHelper.Manifest.ModFolderPath, planet.RelativePath), jsonPath);
@ -163,6 +163,7 @@ namespace NewHorizons
public object QuerySystem(Type outType, string jsonPath) public object QuerySystem(Type outType, string jsonPath)
{ {
var system = Main.SystemDict[Main.Instance.CurrentStarSystem]; var system = Main.SystemDict[Main.Instance.CurrentStarSystem];
NHLogger.Log("System Relative Path: " + system.RelativePath);
return system == null return system == null
? null ? null
: QueryJson(outType, Path.Combine(system.Mod.ModHelper.Manifest.ModFolderPath, system.RelativePath), jsonPath); : QueryJson(outType, Path.Combine(system.Mod.ModHelper.Manifest.ModFolderPath, system.RelativePath), jsonPath);