Skip to content

Commit

Permalink
Eliminate resourceName parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Majiir committed Sep 2, 2014
1 parent 0165af5 commit c9fcf45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin/KethaneData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public override void OnLoad(ConfigNode config)
IBodyResources resources;
CellSet scans;

LoadBodyResources(resourceName, generator, body, bodyNode, out resources, out scans);
LoadBodyResources(generator, body, bodyNode, out resources, out scans);

PlanetDeposits[resourceName][body.name] = resources;
Scans[resourceName][body.name] = scans;
Expand Down Expand Up @@ -130,7 +130,7 @@ public override void OnLoad(ConfigNode config)
Debug.LogWarning(String.Format("Kethane deposits loaded ({0}ms)", timer.ElapsedMilliseconds));
}

private static void LoadBodyResources(string resourceName, IResourceGenerator generator, CelestialBody body, ConfigNode bodyNode, out IBodyResources resources, out CellSet scans)
private static void LoadBodyResources(IResourceGenerator generator, CelestialBody body, ConfigNode bodyNode, out IBodyResources resources, out CellSet scans)
{
resources = generator.Load(body, bodyNode.GetNode("GeneratorData"));
scans = new CellSet(MapOverlay.GridLevel);
Expand All @@ -144,7 +144,7 @@ private static void LoadBodyResources(string resourceName, IResourceGenerator ge
}
catch (FormatException e)
{
Debug.LogError(String.Format("[Kethane] Failed to parse {0}/{1} scan string, resetting ({2})", body.name, resourceName, e.Message));
Debug.LogError(String.Format("[Kethane] Failed to parse {0} scan string, resetting ({1})", body.name, e.Message));
}
}
}
Expand Down

0 comments on commit c9fcf45

Please sign in to comment.