Handle when hideout crafts have null progress values, not just undefined

This commit is contained in:
Dev 2023-12-03 14:50:01 +00:00
parent 48de3139ae
commit fd40d47698

View File

@ -258,7 +258,7 @@ export class HideoutHelper
continue;
}
if (craft.Progress === undefined)
if (craft.Progress === undefined || craft.Progress === null)
{
this.logger.warning(`Craft ${prodId} has an undefined progress value, defaulting to 0`);
craft.Progress = 0;