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 3bb0024 commit aafe7cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Plugin/KethaneData.cs
Expand Up @@ -81,7 +81,7 @@ public override void OnLoad(ConfigNode config)
ConfigNode generatorNode;
IResourceGenerator generator;

LoadResource(resource, resourceName, resourceNode, out resourceDeposits, out resourceScans, out generatorNode, out generator);
LoadResource(resource, resourceNode, out resourceDeposits, out resourceScans, out generatorNode, out generator);

generatorNodes[resourceName] = generatorNode;
generators[resourceName] = generator;
Expand Down Expand Up @@ -115,7 +115,7 @@ public override void OnLoad(ConfigNode config)
Debug.LogWarning(String.Format("Kethane deposits loaded ({0}ms)", timer.ElapsedMilliseconds));
}

private static void LoadResource(ResourceDefinition resource, string resourceName, ConfigNode resourceNode, out Dictionary<string, IBodyResources> resourceDeposits, out Dictionary<string, CellSet> resourceScans, out ConfigNode generatorNode, out IResourceGenerator generator)
private static void LoadResource(ResourceDefinition resource, ConfigNode resourceNode, out Dictionary<string, IBodyResources> resourceDeposits, out Dictionary<string, CellSet> resourceScans, out ConfigNode generatorNode, out IResourceGenerator generator)
{
resourceDeposits = new Dictionary<string, IBodyResources>();
resourceScans = new Dictionary<string, CellSet>();
Expand All @@ -125,7 +125,7 @@ private static void LoadResource(ResourceDefinition resource, string resourceNam
generator = createGenerator(generatorNode.CreateCopy());
if (generator == null)
{
Debug.LogWarning("[Kethane] Defaulting to empty generator for " + resourceName);
Debug.LogWarning("[Kethane] Defaulting to empty generator for " + resource.Resource);
generator = new EmptyResourceGenerator();
}

Expand Down

0 comments on commit aafe7cd

Please sign in to comment.