aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorefefury <69400149+efefury@users.noreply.github.com>2022-01-22 15:08:36 +0100
committerGitHub <noreply@github.com>2022-01-22 15:08:36 +0100
commit5a047cea09c77869cd4533b81be69c394dbae42d (patch)
tree834feb20e204d3073c6ce7f114cc3ff19f408568 /src/main
parent0fb9202a79289200bc73b6c468d109c50eb1f5f5 (diff)
downloadNotEnoughUpdates-5a047cea09c77869cd4533b81be69c394dbae42d.tar.gz
NotEnoughUpdates-5a047cea09c77869cd4533b81be69c394dbae42d.tar.bz2
NotEnoughUpdates-5a047cea09c77869cd4533b81be69c394dbae42d.zip
fixed bug (#68)
* fixed total xp being shown on hotm tab in pv
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/GuiProfileViewer.java3
1 files changed, 2 insertions, 1 deletions
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),