From 565cdc350660c48abea450a029ed785a076ec486 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Sat, 11 May 2024 22:50:20 +1000 Subject: Fix rank in pv for minikloon (#1153) --- .../github/moulberry/notenoughupdates/profileviewer/BasicPage.java | 7 +++++-- 1 file 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(); } -- cgit