Added manifest dependency

This commit is contained in:
Nick J. Connors 2022-01-02 13:08:35 -05:00
parent 74230cba86
commit f045294177
3 changed files with 248 additions and 251 deletions

View File

@ -160,9 +160,9 @@ namespace NewHorizons.Builder.General
trackingOrbitSecondary.TrailTime = period;
}
Helper.helper.Console.WriteLine($"{parent}: {mapping[parent]}");
Helper.helper.Console.WriteLine($"{primaryHB}: {mapping[primaryHB]}");
Helper.helper.Console.WriteLine($"{secondaryHB}: {mapping[secondaryHB]}");
Logger.Log($"{parent}: {mapping[parent]}");
Logger.Log($"{primaryHB}: {mapping[primaryHB]}");
Logger.Log($"{secondaryHB}: {mapping[secondaryHB]}");
}
}
}
@ -174,13 +174,9 @@ namespace NewHorizons.Builder.General
public static void Remove(AstroObject obj)
{
var astro = Position.find(obj);
var mapping = Planet.defaultMapping;
mapping.Remove(astro);
Planet.defaultMapping = mapping;
mapping = Planet.mapping;
mapping.Remove(astro);
Planet.mapping = mapping;
}

View File

@ -189,7 +189,7 @@ namespace NewHorizons
existingPlanet = AstroObjectLocator.GetAstroObject(stringID).gameObject;
if (existingPlanet == null) existingPlanet = AstroObjectLocator.GetAstroObject(body.Config.Name.Replace(" ", "")).gameObject;
}
catch (Exception e)
catch (Exception)
{
existingPlanet = GameObject.Find(body.Config.Name.Replace(" ", "") + "_Body");
}

View File

@ -4,5 +4,6 @@
"name": "New Horizons",
"uniqueName": "xen.NewHorizons",
"version": "0.3.1",
"owmlVersion": "2.1.0"
"owmlVersion": "2.1.0",
"dependencies": [ "PacificEngine.OW_CommonResources" ]
}