From 48da1a6f1a84f49c3690971d472503a0d14a5298 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Tue, 13 Feb 2024 15:53:49 +0100 Subject: [PATCH] perf: use hotm option only when backapck icons --- src/lib.js | 4 ++-- src/stats/items/processing.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.js b/src/lib.js index 21cd402df1..bb67cd2670 100644 --- a/src/lib.js +++ b/src/lib.js @@ -235,9 +235,9 @@ export async function getStats( console.debug(`${options.debugId}: getStats returned. (${Date.now() - timeStarted}ms)`); if (options.updateLeaderboards === true) { - /*stats.updateLeaderboardData(profile.uuid, allProfiles, { + stats.updateLeaderboardData(profile.uuid, allProfiles, { debugId: `${helper.getClusterId()}/${profile.uuid}@updateLeaderboardData`, - });*/ + }); } return output; diff --git a/src/stats/items/processing.js b/src/stats/items/processing.js index a6d25cbfe6..ddc76a87cd 100644 --- a/src/stats/items/processing.js +++ b/src/stats/items/processing.js @@ -283,7 +283,7 @@ export async function processItems(base64, source, customTextures = false, packs const customTexture = getTexture(item, { ignore_id: false, pack_ids: packs, - hotm: true, + hotm: source === "storage_icons", }); if (customTexture) {