From e9f35daf03314199ac3d1bd841de5fbee62d234b Mon Sep 17 00:00:00 2001 From: Francisco Salas Date: Tue, 23 Jan 2024 14:00:19 +0100 Subject: [PATCH] aw5820: fix prod: fill object even if C_input_CropRes is 0 --- CarbonCalculation.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CarbonCalculation.cs b/CarbonCalculation.cs index 37aa240..1b5fcb6 100644 --- a/CarbonCalculation.cs +++ b/CarbonCalculation.cs @@ -642,11 +642,7 @@ namespace FarmMapsAPI.Carbon foreach (var crop in cropArea.Value) { var cInputCropRes = cropPropertyConfig.SingleOrDefault(s => s.Name.ToLower() == crop.Key.ToLower())?.C_input_CropRes ?? 0.0; - if (cInputCropRes > 0) - { - carbonInputs.AddValue((cropArea.Key.Item1, cropArea.Key.Item2, crop.Key), "CarbonResidues", cInputCropRes); - - } + carbonInputs.AddValue((cropArea.Key.Item1, cropArea.Key.Item2, crop.Key), "CarbonResidues", cInputCropRes); if (cropSet.StrawCrops.Any(x => x.StrawCrop.ToLower() == crop.Key.ToLower())) {