diff options
| author | Trương Hoàng Long <longtruong2411@gmail.com> | 2022-06-17 21:41:17 +0200 |
|---|---|---|
| committer | Trương Hoàng Long <longtruong2411@gmail.com> | 2022-06-17 21:41:17 +0200 |
| commit | 00d3d67b0f5f7795e7bfa7f383f9a21f2ae95e60 (patch) | |
| tree | 2e591f36ee9fdddb8740b2315ea6d55ee97e2655 /src/main/java/me/xmrvizzy/skyblocker/skyblock/item | |
| parent | 84097869dc18443660511e656885498beb3c6bc9 (diff) | |
| parent | 51ff2bffea9e978f5716aea9f5d4a0f9a5040865 (diff) | |
| download | Skyblocker-00d3d67b0f5f7795e7bfa7f383f9a21f2ae95e60.tar.gz Skyblocker-00d3d67b0f5f7795e7bfa7f383f9a21f2ae95e60.tar.bz2 Skyblocker-00d3d67b0f5f7795e7bfa7f383f9a21f2ae95e60.zip | |
Merge branch 'master' of https://github.com/SkyblockerMod/Skyblocker
Diffstat (limited to 'src/main/java/me/xmrvizzy/skyblocker/skyblock/item')
| -rw-r--r-- | src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java index fdff7831..ddac803e 100644 --- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java +++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/item/PriceInfoTooltip.java @@ -233,7 +233,7 @@ public class PriceInfoTooltip { if (ea.contains("enchantments")) { NbtCompound enchants = ea.getCompound("enchantments"); String enchant = enchants.getKeys().stream().findFirst().get(); - internalName += "-" + enchant.toUpperCase() + "-" + enchants.getInt(enchant); + internalName += "-" + enchant.toUpperCase(Locale.ENGLISH) + "-" + enchants.getInt(enchant); } } else if ("PET".equals(internalName)) { if (ea.contains("petInfo")) { @@ -245,14 +245,14 @@ public class PriceInfoTooltip { String extended = ea.contains("extended") ? "-EXTENDED" : ""; String splash = ea.contains("splash") ? "-SPLASH" : ""; if (ea.contains("potion") && ea.contains("potion_level")) { - internalName += "-" + ea.getString("potion").toUpperCase() + "-" + ea.getInt("potion_level") + internalName += "-" + ea.getString("potion").toUpperCase(Locale.ENGLISH) + "-" + ea.getInt("potion_level") + enhanced + extended + splash; } } else if ("RUNE".equals(internalName)) { if (ea.contains("runes")) { NbtCompound runes = ea.getCompound("runes"); String rune = runes.getKeys().stream().findFirst().get(); - internalName += "-" + rune.toUpperCase() + "-" + runes.getInt(rune); + internalName += "-" + rune.toUpperCase(Locale.ENGLISH) + "-" + runes.getInt(rune); } } |
