/// <summary>
/// Updates the min/max quantities of resource in the part based on the current 'totalFuelVolume' field and currently set fuel type
/// </summary>
private void updateContainerVolume()
{
SSTUVolumeContainer vc = part.GetComponent <SSTUVolumeContainer>();
if (vc != null)
{
float tankPercent = 100 - supportPercent;
float monoPercent = supportPercent;
float[] pcts = new float[2];
pcts[0] = tankPercent * 0.01f;
pcts[1] = monoPercent * 0.01f;
vc.setContainerPercents(pcts, totalTankVolume * 1000f);
}
else
{
//real-fuels handling....
SSTUModInterop.onPartFuelVolumeUpdate(part, totalTankVolume * 1000f);
}
}