Fixed missing commit.

This commit is contained in:
Droog71 2022-05-07 22:53:47 -04:00
parent 26c430f834
commit 9781429a1b

View File

@ -671,7 +671,13 @@ public class Atmosphere : FortressCraftMod
foreach (InstanceManager manager in managers)
{
MPB_Dual_Color_Instancer[] instancers = manager.maInstancers;
if (instancers != null)
{
for (int i = 0; i < instancers.Length; i++)
{
if (instancers[i] != null)
{
if (instancers[i].mMesh != null)
{
string meshName = instancers[i].mMesh.name;
if (meshName == "GlowTube01" || meshName == "GlowTube02" || meshName == "GlowTube03")
@ -692,9 +698,16 @@ public class Atmosphere : FortressCraftMod
}
}
}
}
}
}
Material[] materials = manager.maMaterials;
if (materials != null)
{
for (int m = 0; m < materials.Length; m++)
{
if (materials[m] != null)
{
string materialName = materials[m].name;
if (materialName == "GlowTubes_Instanced")
@ -714,6 +727,8 @@ public class Atmosphere : FortressCraftMod
}
}
}
}
}
private void SaveSettings()
{