public void IsWorkingChanged(IMyCubeBlock block) { if (block == null) { return; } //subpart = block.GetSubpart(subpartName); block.TryGetSubpart(subpartName, out subpart); if (OneEmissiveMaterial) { CheckAndSetEmissives(); } else { if (StaticThrusterData.Any()) { foreach (var data in StaticThrusterData) { PrepData(data); CheckAndSetEmissives(); } } if (DynamicThrusterData.Any()) { NeedsUpdate = MyEntityUpdateEnum.EACH_FRAME; } } }