Skip to content

Commit 16a0046

Browse files
committed
Migrate to KSPCommunityLib for logging
1 parent 1381286 commit 16a0046

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Source/MaterialReplacement/IconMaterialReplacement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License
2121
using System.Reflection;
2222
using System.Reflection.Emit;
2323
using HarmonyLib;
24-
using KSPBuildTools;
24+
using KSPCommunityLib.Logging;
2525
using UnityEngine;
2626

2727
namespace Shabby.MaterialReplacement;

Source/MaterialReplacement/MaterialDef.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
1919
using System;
2020
using System.Collections.Generic;
2121
using HarmonyLib;
22-
using KSPBuildTools;
22+
using KSPCommunityLib.Logging;
2323
using UnityEngine;
2424

2525
namespace Shabby.MaterialReplacement;
@@ -177,5 +177,5 @@ public Material Instantiate(Material referenceMaterial)
177177
return material;
178178
}
179179

180-
public string context() => $"MaterialDef {name}";
180+
public string LoggingContext() => $"MaterialDef {name}";
181181
}

Source/MaterialReplacement/MaterialReplacement.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
1919
using System.Collections.Generic;
2020
using System.Linq;
2121
using HarmonyLib;
22-
using KSPBuildTools;
22+
using KSPCommunityLib.Logging;
2323
using UnityEngine;
2424

2525
namespace Shabby.MaterialReplacement;

Source/MaterialReplacement/ModelFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License
1818

1919
using System.Collections.Generic;
2020
using System.Linq;
21-
using KSPBuildTools;
21+
using KSPCommunityLib.Logging;
2222
using UnityEngine;
2323

2424
namespace Shabby.MaterialReplacement;

Source/ShaderFindOverride.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Reflection;
55
using System.Reflection.Emit;
66
using HarmonyLib;
7-
using KSPBuildTools;
7+
using KSPCommunityLib.Logging;
88
using Mono.Cecil;
99
using Mono.Cecil.Rocks;
1010
using MonoMod.Utils;

0 commit comments

Comments
 (0)