From 13f89925142591c4d5a0d1968fadb1af0fb71933 Mon Sep 17 00:00:00 2001 From: Lawin0129 Date: Thu, 17 Feb 2022 23:20:05 +0000 Subject: [PATCH] Update functions.js --- structure/functions.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/structure/functions.js b/structure/functions.js index d9c240b..ceec0bd 100644 --- a/structure/functions.js +++ b/structure/functions.js @@ -86,7 +86,9 @@ function getItemShop() { CatalogEntry.prices[0].regularPrice = CatalogConfig[value].price CatalogEntry.prices[0].finalPrice = CatalogConfig[value].price - catalog.storefronts[i].catalogEntries.push(CatalogEntry); + if (CatalogEntry.itemGrants.length != 0) { + catalog.storefronts[i].catalogEntries.push(CatalogEntry); + } } }) } @@ -113,7 +115,9 @@ function getItemShop() { CatalogEntry.prices[0].regularPrice = CatalogConfig[value].price CatalogEntry.prices[0].finalPrice = CatalogConfig[value].price - catalog.storefronts[i].catalogEntries.push(CatalogEntry); + if (CatalogEntry.itemGrants.length != 0) { + catalog.storefronts[i].catalogEntries.push(CatalogEntry); + } } }) }