Further code cleanup
This commit is contained in:
@@ -209,6 +209,7 @@ public class EnumerationUtil
|
||||
"WITCH", // Minecraft 1.?
|
||||
"WITHER", // Minecraft 1.?
|
||||
"WITHER_SKELETON",
|
||||
"STRAY", // Minecraft 1.?
|
||||
"ZOMBIE", // Minecraft 1.?
|
||||
"ZOMBIE_VILLAGER",
|
||||
"ILLUSIONER", // Minecraft 1.12
|
||||
|
@@ -24,16 +24,14 @@ public class MiscUtil
|
||||
return values;
|
||||
}
|
||||
|
||||
public static HashSet<String> substanceChars = new HashSet<>(Arrays.asList(new String[]{
|
||||
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H",
|
||||
public static HashSet<String> substanceChars = new HashSet<>(Arrays.asList("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H",
|
||||
"I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
|
||||
"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r",
|
||||
"s", "t", "u", "v", "w", "x", "y", "z"
|
||||
}));
|
||||
"s", "t", "u", "v", "w", "x", "y", "z"));
|
||||
|
||||
public static String getComparisonString(String str)
|
||||
{
|
||||
String ret = "";
|
||||
StringBuilder ret = new StringBuilder();
|
||||
|
||||
str = ChatColor.stripColor(str);
|
||||
str = str.toLowerCase();
|
||||
@@ -42,10 +40,10 @@ public class MiscUtil
|
||||
{
|
||||
if (substanceChars.contains(String.valueOf(c)))
|
||||
{
|
||||
ret += c;
|
||||
ret.append(c);
|
||||
}
|
||||
}
|
||||
return ret.toLowerCase();
|
||||
return ret.toString().toLowerCase();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user