aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
index 038b9e14..f56f1fd1 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ProfileViewerUtils.java
@@ -46,6 +46,7 @@ import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
@@ -224,8 +225,8 @@ public class ProfileViewerUtils {
public static void saveSearch(String username) {
if (username == null) return;
- String nameLower = username.toLowerCase();
- if (nameLower.equals(Minecraft.getMinecraft().thePlayer.getName().toLowerCase())) return;
+ String nameLower = username.toLowerCase(Locale.ROOT);
+ if (nameLower.equals(Minecraft.getMinecraft().thePlayer.getName().toLowerCase(Locale.ROOT))) return;
List<String> previousProfileSearches = NotEnoughUpdates.INSTANCE.config.hidden.previousProfileSearches;
previousProfileSearches.remove(nameLower);
previousProfileSearches.add(0, nameLower);
@@ -244,7 +245,7 @@ public class ProfileViewerUtils {
public static ItemStack getPlayerData(String username) {
if (username == null) return new ItemStack(Blocks.stone);
- String nameLower = username.toLowerCase();
+ String nameLower = username.toLowerCase(Locale.ROOT);
if (!playerSkullCache.containsKey(nameLower)) {
playerSkullCache.put(nameLower, fallBackSkull());