diff options
-rw-r--r-- | src/cleaners/achievements.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cleaners/achievements.ts b/src/cleaners/achievements.ts index 9f499f1..367e14a 100644 --- a/src/cleaners/achievements.ts +++ b/src/cleaners/achievements.ts @@ -56,11 +56,10 @@ 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 + description: achievementData.description.replace(/%s/g, (achievementData.tiers[Math.max(0, tier - 1)].amount).toString()) }) } - // 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[] = [] |