Convert to .GetValueOrDefault()

This commit is contained in:
hulkhan22
2025-04-27 21:41:55 +02:00
parent 198fd5b4b7
commit 53d3c7fcce
@@ -440,7 +440,7 @@ public class HideoutHelper(
var production = pmcData.Hideout.Production[prodId];
// Some items NEED power to craft (e.g. DSP)
if (production.needFuelForAllProductionTime == true && hideoutProperties.IsGeneratorOn)
if (production.needFuelForAllProductionTime.GetValueOrDefault() && hideoutProperties.IsGeneratorOn)
{
production.Progress += timeElapsed;
}