Handle when hideout crafts have null progress values, not just undefined
This commit is contained in:
parent
48de3139ae
commit
fd40d47698
@ -258,7 +258,7 @@ export class HideoutHelper
|
|||||||
continue;
|
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`);
|
this.logger.warning(`Craft ${prodId} has an undefined progress value, defaulting to 0`);
|
||||||
craft.Progress = 0;
|
craft.Progress = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user