diff --git a/wsEvents/GetPatches.js b/wsEvents/GetPatches.js index 35848751..49b93209 100644 --- a/wsEvents/GetPatches.js +++ b/wsEvents/GetPatches.js @@ -33,16 +33,11 @@ module.exports = async function (message, ws) { }); } - let isPatchDupe = false; - - for (const match of matches) { + for (const match of Array.from(new Set(matches))) { const { name, description, pkg, versions } = match.groups; const isRooted = rootedPatches.includes(name); const isCompatible = pkg === global.jarNames.selectedApp; - if (isPatchDupe && name === 'client-spoof') continue; - if (name === 'client-spoof') isPatchDupe = true; - const versionsArr = versions.split(', '); global.versions = versionsArr.map((i) => i.trim()); const maxVersion = versionsArr.sort()[versionsArr.length - 1];