Skip to content

Commit

Permalink
Shift around some logging
Browse files Browse the repository at this point in the history
StollD committed Aug 6, 2018
1 parent da733ae commit b00d1ac
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -126,6 +126,7 @@ $tf/
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user
*.DotSettings

# JustCode is a .NET coding addin-in
.JustCode
6 changes: 4 additions & 2 deletions src/Kopernicus/Configuration/TemplateLoader.cs
Original file line number Diff line number Diff line change
@@ -159,7 +159,7 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
body.celestialBody.atmosphere = false;
}

Logger.Active.Log("[Kopernicus]: Configuration.Template: Using Template \"" + body.celestialBody.bodyName + "\"");
Logger.Active.Log("Using Template \"" + body.celestialBody.bodyName + "\"");

// If we have a PQS
if (body.pqsVersion != null)
@@ -286,10 +286,12 @@ void IParserEventSubscriber.PostApply(ConfigNode node)
// Remove all mods
Utility.RemoveModsOfType(null, body.pqsVersion);
}

Logger.Active.Log("Patching PQSLandControl");

foreach (PQSLandControl landControl in body.pqsVersion.GetComponentsInChildren<PQSLandControl>())
{
Utility.CopyObjectFields(landControl, landControl.gameObject.AddComponent<PQSLandControlPatched>());
Utility.CopyObjectFields(landControl, landControl.gameObject.AddComponent<PQSLandControlPatched>(), false);
UnityEngine.Object.Destroy(landControl);
}
}

0 comments on commit b00d1ac

Please sign in to comment.