Skip to content

Commit

Permalink
Merge pull request #296 from SpaceWarpDev/dev
Browse files Browse the repository at this point in the history
1.9.3 Hotfix
  • Loading branch information
cheese3660 authored Feb 21, 2024
2 parents 67dced4 + abc8040 commit 40b1546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin_template/BepInEx/plugins/SpaceWarp/swinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/SpaceWarp.Core/Patching/Parts/ColorsPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Renderer>())
foreach (var renderer in prefab.GetComponentsInChildren<Renderer>(true))
{
var shaderName = renderer.material.shader.name;
if (shaderName is not ("Parts Replace" or "KSP2/Parts/Paintable"))
Expand All @@ -50,7 +50,7 @@ public static void Prefix(IObjectAssemblyAvailablePart obj, ref GameObject prefa
[HarmonyPatch(typeof(SimulationObjectView), nameof(SimulationObjectView.InitializeView))]
public static void UpdateColorsInFlight(GameObject instance)
{
foreach (var renderer in instance.GetComponentsInChildren<Renderer>())
foreach (var renderer in instance.GetComponentsInChildren<Renderer>(true))
{
var shaderName = renderer.material.shader.name;
if (shaderName is not ("Parts Replace" or "KSP2/Parts/Paintable"))
Expand Down

0 comments on commit 40b1546

Please sign in to comment.