aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-14 20:03:39 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-14 20:03:39 -0600
commit09bbeda4e3b0650db2b309ee79f2146a873f0a5b (patch)
tree0b09ff3fc478795af85b3f72c1cd4780c978895b /src/cleaners
parent84778bb94747390fbcc83a3d6a5bd69286208f61 (diff)
downloadskyblock-api-09bbeda4e3b0650db2b309ee79f2146a873f0a5b.tar.gz
skyblock-api-09bbeda4e3b0650db2b309ee79f2146a873f0a5b.tar.bz2
skyblock-api-09bbeda4e3b0650db2b309ee79f2146a873f0a5b.zip
fix mvp++
Diffstat (limited to 'src/cleaners')
-rw-r--r--src/cleaners/rank.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cleaners/rank.ts b/src/cleaners/rank.ts
index bd39088..d565502 100644
--- a/src/cleaners/rank.ts
+++ b/src/cleaners/rank.ts
@@ -37,10 +37,10 @@ export function cleanRank({
color = minecraftColorCodes[colored.match(/§./)[0][1]]
name = colored.replace(/§./g, '').replace(/[\[\]]/g, '')
} else {
- name = rank
+ name = monthlyPackageRank
+ || rank
|| newPackageRank?.replace('_PLUS', '+')
|| packageRank?.replace('_PLUS', '+')
- || monthlyPackageRank
// MVP++ is called Superstar for some reason
if (name === 'SUPERSTAR') name = 'MVP++'