From 5a047cea09c77869cd4533b81be69c394dbae42d Mon Sep 17 00:00:00 2001 From: efefury <69400149+efefury@users.noreply.github.com> Date: Sat, 22 Jan 2022 15:08:36 +0100 Subject: fixed bug (#68) * fixed total xp being shown on hotm tab in pv --- .../moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java index fb96ab5d..7a1d9876 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java @@ -1373,7 +1373,8 @@ public class GuiProfileViewer extends GuiScreen { String totalXpStr = null; if (levelObj.maxed) { levelStr = EnumChatFormatting.GOLD + "MAXED!"; - totalXpStr = EnumChatFormatting.GRAY + "Total XP: " + EnumChatFormatting.DARK_PURPLE + Utils.formatNumberWithDots((long) levelObj.totalXp); + if(skillName.contains("Catacombs")) + totalXpStr = EnumChatFormatting.GRAY + "Total XP: " + EnumChatFormatting.DARK_PURPLE + Utils.formatNumberWithDots((long) levelObj.totalXp); } else { int maxXp = (int) levelObj.maxXpForLevel; levelStr = EnumChatFormatting.DARK_PURPLE + shortNumberFormat(Math.round((level % 1) * maxXp), -- cgit