From 53d3c7fcce1f9b08f17327e96f3c19d394d0738a Mon Sep 17 00:00:00 2001 From: hulkhan22 Date: Sun, 27 Apr 2025 21:41:55 +0200 Subject: [PATCH] Convert to .GetValueOrDefault() --- Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs index 796d3363..9d441422 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/HideoutHelper.cs @@ -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; }