aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
diff options
context:
space:
mode:
authorNopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com>2024-04-27 06:23:28 +1000
committerGitHub <noreply@github.com>2024-04-26 22:23:28 +0200
commitb3ca5b1ffc698ede14d4e9d8ed2dc86711201de1 (patch)
treeb30f23c9745bfc66c721e7bfdb440a336142871a /src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
parentd3106bf41e099d329d9db330ab09e167519fce25 (diff)
downloadnotenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.tar.gz
notenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.tar.bz2
notenoughupdates-b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1.zip
Fix Profile viewer issues with Turkish language (#1116)
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
index 25111031..ebc35a39 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/SkyblockProfiles.java
@@ -58,6 +58,7 @@ import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -925,7 +926,7 @@ public class SkyblockProfiles {
}
} else {
skillExperience += Utils.getElementAsFloat(
- Utils.getElement(profileJson, "player_data.experience.SKILL_" + skillName.toUpperCase()),
+ Utils.getElement(profileJson, "player_data.experience.SKILL_" + skillName.toUpperCase(Locale.ROOT)),
0
);
}