diff options
author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-05-11 22:50:20 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 14:50:20 +0200 |
commit | 565cdc350660c48abea450a029ed785a076ec486 (patch) | |
tree | 83e1b76a9ee7d1d73f8f9a4008e859e80959f605 | |
parent | b07483e302a0bf056016302e2a3dcefc0e78c761 (diff) | |
download | NotEnoughUpdates-565cdc350660c48abea450a029ed785a076ec486.tar.gz NotEnoughUpdates-565cdc350660c48abea450a029ed785a076ec486.tar.bz2 NotEnoughUpdates-565cdc350660c48abea450a029ed785a076ec486.zip |
Fix rank in pv for minikloon (#1153)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java index 60099e2b..ab423167 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java @@ -221,6 +221,9 @@ public class BasicPage extends GuiProfileViewerPage { profile.getHypixelProfile().get("rank"), Utils.getElementAsString(profile.getHypixelProfile().get("newPackageRank"), "NONE") ); + if (rank.equals("NORMAL")) { + rank = Utils.getElementAsString(profile.getHypixelProfile().get("newPackageRank"), "NONE"); + } String monthlyPackageRank = Utils.getElementAsString( profile.getHypixelProfile().get("monthlyPackageRank"), "NONE" @@ -229,9 +232,9 @@ public class BasicPage extends GuiProfileViewerPage { rank = monthlyPackageRank; } EnumChatFormatting rankPlusColorECF = EnumChatFormatting.getValueByName( - Utils.getElementAsString(profile.getHypixelProfile().get("rankPlusColor"), "GOLD") + Utils.getElementAsString(profile.getHypixelProfile().get("rankPlusColor"), "RED") ); - String rankPlusColor = EnumChatFormatting.GOLD.toString(); + String rankPlusColor = EnumChatFormatting.RED.toString(); if (rankPlusColorECF != null) { rankPlusColor = rankPlusColorECF.toString(); } |