From 8fda5395e688984e837b9634a2c0d4b27325edae Mon Sep 17 00:00:00 2001 From: Dev Date: Fri, 10 Nov 2023 20:11:36 +0000 Subject: [PATCH] FIx `getFleaPriceForItem()` handing items with a price of 0 incorrectly. Only show error when price returned is undefined --- project/src/services/RagfairPriceService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/RagfairPriceService.ts b/project/src/services/RagfairPriceService.ts index 54a236d4..77699e5a 100644 --- a/project/src/services/RagfairPriceService.ts +++ b/project/src/services/RagfairPriceService.ts @@ -101,7 +101,7 @@ export class RagfairPriceService implements OnLoad { // Get dynamic price (templates/prices), if that doesnt exist get price from static array (templates/handbook) let itemPrice = this.getDynamicPriceForItem(tplId) || this.getStaticPriceForItem(tplId); - if (!itemPrice) + if (itemPrice === undefined) { this.logger.warning(this.localisationService.getText("ragfair-unable_to_find_item_price_for_item_in_flea_handbook", tplId)); }