From 7a258505c8161205678d1ba46dfba4836f6180e6 Mon Sep 17 00:00:00 2001 From: Nathan Thor Date: Thu, 3 Jun 2021 14:40:36 -0700 Subject: [PATCH] Minor bug fixes from Discord testing --- .../shanerx/tradeshop/enumys/ShopItemStackSettingKeys.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/shanerx/tradeshop/enumys/ShopItemStackSettingKeys.java b/src/main/java/org/shanerx/tradeshop/enumys/ShopItemStackSettingKeys.java index c825e9fb..58fb0077 100644 --- a/src/main/java/org/shanerx/tradeshop/enumys/ShopItemStackSettingKeys.java +++ b/src/main/java/org/shanerx/tradeshop/enumys/ShopItemStackSettingKeys.java @@ -62,7 +62,9 @@ public String makeReadable() { for (int i = 0; i < name().length(); i++) { char ch = name().charAt(i); - if (i == 0 || (i > 0 && ret.charAt(i - 1) == ' ')) + if (i == 0) + ret.append(Character.toUpperCase(ch)); + else if (ret.charAt(i - 1) == ' ') ret.append(Character.toUpperCase(ch)); else if (ch == '_') ret.append(" ");