diff options
| author | NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> | 2024-04-27 06:23:28 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-26 22:23:28 +0200 |
| commit | b3ca5b1ffc698ede14d4e9d8ed2dc86711201de1 (patch) | |
| tree | b30f23c9745bfc66c721e7bfdb440a336142871a /src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | |
| parent | d3106bf41e099d329d9db330ab09e167519fce25 (diff) | |
| download | notenoughupdates-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/overlays/MiningOverlay.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java index 90433a51..ad5100e3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -49,6 +49,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.Set; import java.util.function.Supplier; @@ -836,7 +837,7 @@ public class MiningOverlay extends TextTabOverlay { icon = miningOverlayCommissionItems.get("Mithril"); } else if (beforeColon.endsWith(" Gemstone Collector")) { String gemName = "ROUGH_" - + beforeColon.replace(" Gemstone Collector", "").toUpperCase() + "_GEM"; + + beforeColon.replace(" Gemstone Collector", "").toUpperCase(Locale.ROOT) + "_GEM"; if (miningOverlayRoughGems.containsKey(gemName)) { icon = miningOverlayRoughGems.get(gemName); } else { @@ -847,7 +848,7 @@ public class MiningOverlay extends TextTabOverlay { } } else if (beforeColon.endsWith(" Crystal Hunter")) { String gemName = "PERFECT_" - + beforeColon.replace(" Crystal Hunter", "").toUpperCase() + "_GEM"; + + beforeColon.replace(" Crystal Hunter", "").toUpperCase(Locale.ROOT) + "_GEM"; if (miningOverlayPerfectGems.containsKey(gemName)) { icon = miningOverlayPerfectGems.get(gemName); } else { |
