FIx getFleaPriceForItem()
handing items with a price of 0 incorrectly.
Only show error when price returned is undefined
This commit is contained in:
parent
113ab255e8
commit
8fda5395e6
@ -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)
|
// Get dynamic price (templates/prices), if that doesnt exist get price from static array (templates/handbook)
|
||||||
let itemPrice = this.getDynamicPriceForItem(tplId) || this.getStaticPriceForItem(tplId);
|
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));
|
this.logger.warning(this.localisationService.getText("ragfair-unable_to_find_item_price_for_item_in_flea_handbook", tplId));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user