From 7849a730f28edbdc05db664b781d98bb1891b5ac Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 10 Nov 2023 19:00:04 +0000 Subject: [PATCH] Fix nullguard firing for all traders --- project/src/controllers/GameController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index 923ffb91..df65186d 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -246,7 +246,7 @@ export class GameController return; } - if (trader.base.repair?.quality) + if (trader.base.repair?.quality === undefined) { 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;