From 609d89cd9b0ea3350c27f876233712d84b45fa8f Mon Sep 17 00:00:00 2001 From: TomatoCake <60300461+DEVTomatoCake@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:31:32 +0100 Subject: [PATCH] Fix missing functions duplicates --- assets/analyzer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/analyzer.js b/assets/analyzer.js index 2837757..a587363 100644 --- a/assets/analyzer.js +++ b/assets/analyzer.js @@ -308,7 +308,7 @@ async function mainScan(hasData = false) { if (Object.values(filetypes).reduce((a, b) => a + b) == 0) document.getElementById("progress").innerHTML = "No " + (rpMode ? "resource" : "data") + "pack files found!" const uncalledFunctions = dpExclusive.functions.filter(funcName => !dpExclusive.functionCalls.some(func => func.target == funcName)) - const missingFunctions = dpExclusive.functionCalls.filter(func => !dpExclusive.functions.includes(func.target)) + const missingFunctions = [...new Set(dpExclusive.functionCalls.filter(func => !dpExclusive.functions.includes(func.target)).map(func => func.target))] let html = (packImages.length > 0 ? "