diff --git a/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json b/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json index bd1122b..542f4b2 100644 --- a/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json +++ b/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json @@ -5,7 +5,7 @@ "name": "Space Warp", "description": "Space Warp is an API for KSP 2 mod developers.", "source": "https://github.com/SpaceWarpDev/SpaceWarp", - "version": "1.9.2", + "version": "1.9.3", "version_check": "https://raw.githubusercontent.com/SpaceWarpDev/SpaceWarp/main/plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json", "ksp2_version": { "min": "0.2.1", diff --git a/src/SpaceWarp.Core/Patching/Parts/ColorsPatch.cs b/src/SpaceWarp.Core/Patching/Parts/ColorsPatch.cs index 77db677..040f898 100644 --- a/src/SpaceWarp.Core/Patching/Parts/ColorsPatch.cs +++ b/src/SpaceWarp.Core/Patching/Parts/ColorsPatch.cs @@ -28,7 +28,7 @@ internal class ColorsPatch [HarmonyPatch(typeof(ObjectAssemblyPartTracker), nameof(ObjectAssemblyPartTracker.OnPartPrefabLoaded))] public static void Prefix(IObjectAssemblyAvailablePart obj, ref GameObject prefab) { - foreach (var renderer in prefab.GetComponentsInChildren()) + foreach (var renderer in prefab.GetComponentsInChildren(true)) { var shaderName = renderer.material.shader.name; if (shaderName is not ("Parts Replace" or "KSP2/Parts/Paintable"))