diff --git a/public/resources/ts/globals.d.ts b/public/resources/ts/globals.d.ts index f7012ea8a6..560ce90843 100644 --- a/public/resources/ts/globals.d.ts +++ b/public/resources/ts/globals.d.ts @@ -80,7 +80,7 @@ declare const items: { candy_bag: (ItemSlot | Item | Backpack)[]; storage: (ItemSlot | Item | Backpack)[]; bingo_card: (ItemSlot | Item | Backpack)[]; - museum: (ItemSlot | Item | Backpack)[]; + //museum: (ItemSlot | Item | Backpack)[]; }; type StatName = diff --git a/public/resources/ts/stats-defer.ts b/public/resources/ts/stats-defer.ts index 73e7410ff9..1d75add39f 100644 --- a/public/resources/ts/stats-defer.ts +++ b/public/resources/ts/stats-defer.ts @@ -127,7 +127,7 @@ export const ALL_ITEMS = new Map( items.storage, items.hotm, items.bingo_card, - items.museum, + //items.museum, ] .flat() .flatMap((item) => { diff --git a/src/lib.js b/src/lib.js index b87a9c7e77..73d7b9bbe4 100644 --- a/src/lib.js +++ b/src/lib.js @@ -175,7 +175,7 @@ export async function getStats( fishing_bag: items.fishing_bag, potion_bag: items.potion_bag, candy_inventory: items.candy_bag, - museum: [], + //museum: [], }, output.currencies.bank, { cache: true, onlyNetworth: true, v2Endpoint: true } diff --git a/src/stats/items.js b/src/stats/items.js index 370f137274..90214694d6 100644 --- a/src/stats/items.js +++ b/src/stats/items.js @@ -147,11 +147,11 @@ export async function getItems( output.hotm = hotm; output.candy_bag = candy_bag; - const museum = - "museum" in profile ? await items.getMuseumItems(profile, customTextures, packs, options.cacheOnly) : []; + // const museum = + // "museum" in profile ? await items.getMuseumItems(profile, customTextures, packs, options.cacheOnly) : []; - output.museumItems = museum?.museumItems ?? []; - output.museum = museum?.museum ?? []; + // output.museumItems = museum?.museumItems ?? []; + // output.museum = museum?.museum ?? []; output.bingo_card = await items.getBingoCard(paramBingo, options.cacheOnly); diff --git a/views/sections/stats/items/inventory.ejs b/views/sections/stats/items/inventory.ejs index 0c96b4e3d6..b3d988d2f0 100644 --- a/views/sections/stats/items/inventory.ejs +++ b/views/sections/stats/items/inventory.ejs @@ -78,7 +78,7 @@ </button> <% } %> - <% if (items.museum.length > 0) { %> + <% if (items.museum && items.museum.length > 0) { %> <button class="inventory-tab" data-inventory-type="museum"> <div class="inventory-tab-icon item-icon custom-icon" style="background-image: url(/head/438cf3f8e54afc3b3f91d20a49f324dca1486007fe545399055524c17941f4dc)"></div> <div class="inventory-tab-name">Museum</div>