private void updatePartResources() { float resourceScalar = Mathf.Pow(getScale(), thrustScalePower); float currentVolume = resourceVolume * resourceScalar; SSTUResourceList list = new SSTUResourceList(); fuelType.addResources(list, currentVolume); list.setResourcesToPart(part, 1, HighLogic.LoadedSceneIsFlight); }
private void updatePartResources() { float resourceScalar = Mathf.Pow(getScale(), thrustScalePower); float currentVolume = resourceVolume * resourceScalar; if (!SSTUModInterop.onPartFuelVolumeUpdate(part, currentVolume * 1000)) { SSTUResourceList list = new SSTUResourceList(); fuelType.addResources(list, currentVolume); list.setResourcesToPart(part); } }