From ade4875362d0a24c1dbd5c4cdde3c8974de63407 Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 10 Nov 2023 10:37:26 +0000 Subject: [PATCH] Change warning in `checkTraderRepairValuesExist()` to use nickname --- 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 11e560ec..923ffb91 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -240,7 +240,7 @@ export class GameController const trader = this.databaseServer.getTables().traders[traderKey]; if (!trader?.base?.repair) { - this.logger.warning(`Trader ${trader.base._id} ${trader.base.name} is missing a repair object, adding in default values`); + this.logger.warning(`Trader ${trader.base._id} ${trader.base.nickname} is missing a repair object, adding in default values`); trader.base.repair = this.jsonUtil.clone(this.databaseServer.getTables().traders.ragfair.base.repair); return; @@ -248,7 +248,7 @@ export class GameController 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`); + this.logger.warning(`Trader ${trader.base._id} ${trader.base.nickname} is missing a repair quality value, adding in default value`); trader.base.repair.quality = this.databaseServer.getTables().traders.ragfair.base.repair.quality; } }