From c4c923f8dc97c186b98844464b1a2874cb969234 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 10 Nov 2023 10:31:22 +0000 Subject: [PATCH] Update checkTraderRepairValuesExist() to not use .clone --- project/src/controllers/GameController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 27f13b7a..11e560ec 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -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; } } }