diff --git a/project/src/helpers/HandbookHelper.ts b/project/src/helpers/HandbookHelper.ts index 74c3e876..b674daeb 100644 --- a/project/src/helpers/HandbookHelper.ts +++ b/project/src/helpers/HandbookHelper.ts @@ -92,9 +92,10 @@ export class HandbookHelper const handbookItem = this.databaseServer.getTables().templates.handbook.Items.find(x => x.Id === tpl); if (!handbookItem) { - this.handbookPriceCache.items.byId.set(tpl, 1); + const newValue = 0; + this.handbookPriceCache.items.byId.set(tpl, newValue); - return 1; + return newValue; } return handbookItem.Price; diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index e6ed248d..2d7b4c3d 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -117,6 +117,8 @@ class ItemHelper { return dynamicPrice; } + + return 0; } /**