From 447bf21f81e4f1e635433de0b6b24b8a1dda1255 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 2 Jun 2022 17:00:26 -0500 Subject: Disable some potentially bad code --- src/cleaners/achievements.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cleaners') diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts index 367e14a..9f499f1 100644 --- a/src/cleaners/achievements.ts +++ b/src/cleaners/achievements.ts @@ -56,10 +56,11 @@ export async function cleanPlayerAchievements(data: typedHypixelApi.PlayerDataRe tier, next, amount, - description: achievementData.description.replace(/%s/g, (achievementData.tiers[Math.max(0, tier - 1)].amount).toString()) + // description: achievementData.description.replace(/%s/g, (achievementData.tiers[Math.max(0, tier - 1)].amount).toString()) + description: achievementData.description }) } - tieredAchievements.sort((a, b) => (b.amount ?? 0) - (a.amount ?? 0)) + // tieredAchievements.sort((a, b) => (b.amount ?? 0) - (a.amount ?? 0)) const unlockedChallengeAchievements: ChallengeAchievement[] = [] const lockedChallengeAchievements: ChallengeAchievement[] = [] -- cgit