aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHexeption <keir.davis2020@gmail.com>2023-01-19 13:49:51 +0000
committerGitHub <noreply@github.com>2023-01-19 14:49:51 +0100
commit97d3fb41693e97c51ba9e4929cd7f4294f7c68e1 (patch)
treea879509bb9da300e8cfcd88455690ccf6487d1e8 /src
parentcc3d273d81ecb3b1ab5af9902388f4b3be744c5c (diff)
downloadNotEnoughUpdates-97d3fb41693e97c51ba9e4929cd7f4294f7c68e1.tar.gz
NotEnoughUpdates-97d3fb41693e97c51ba9e4929cd7f4294f7c68e1.tar.bz2
NotEnoughUpdates-97d3fb41693e97c51ba9e4929cd7f4294f7c68e1.zip
Use a long for skils totalXP fixes #555 (#559)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java2
1 files changed, 1 insertions, 1 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 873ee9f2..47df3c6e 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/BasicPage.java
@@ -691,7 +691,7 @@ public class BasicPage extends GuiProfileViewerPage {
"/" +
StringUtils.shortNumberFormat(maxXp));
}
- String totalXpS = GuiProfileViewer.numberFormat.format((int) level.totalXp);
+ String totalXpS = GuiProfileViewer.numberFormat.format((long) level.totalXp);
tooltipToDisplay.add(EnumChatFormatting.GRAY + "Total XP: " + EnumChatFormatting.DARK_PURPLE + totalXpS +
EnumChatFormatting.DARK_GRAY + " (" +
DECIMAL_FORMAT.format(guiProfileViewer.getPercentage(entry.getKey().toLowerCase(), level)) +