Update checkTraderRepairValuesExist() to not use .clone

This commit is contained in:
Dev 2023-11-10 10:31:22 +00:00
parent 21dd62269e
commit c4c923f8dc

View File

@ -246,10 +246,10 @@ export class GameController
return;
}
if (trader?.base?.repair?.quality)
if (trader.base.repair?.quality)
{
this.logger.warning(`Trader ${trader.base._id} ${trader.base.name} is missing a repair quality value, adding in default value`);
trader.base.repair.quality = this.jsonUtil.clone(this.databaseServer.getTables().traders.ragfair.base.repair.quality);
trader.base.repair.quality = this.databaseServer.getTables().traders.ragfair.base.repair.quality;
}
}
}