aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-06-02 18:24:26 -0500
committermat <github@matdoes.dev>2022-06-02 18:24:26 -0500
commit379954771b1a8c95dbe0a51bb4b2c52e8738fc73 (patch)
treed558c2e18fc14c94cd66f1fd008b3db13930f8d1 /src
parent447bf21f81e4f1e635433de0b6b24b8a1dda1255 (diff)
downloadskyblock-api-379954771b1a8c95dbe0a51bb4b2c52e8738fc73.tar.gz
skyblock-api-379954771b1a8c95dbe0a51bb4b2c52e8738fc73.tar.bz2
skyblock-api-379954771b1a8c95dbe0a51bb4b2c52e8738fc73.zip
Revert "Disable some potentially bad code"
This reverts commit 447bf21f81e4f1e635433de0b6b24b8a1dda1255.
Diffstat (limited to 'src')
-rw-r--r--src/cleaners/achievements.ts5
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[] = []