Fix potential case issues on item alias part matching

This commit is contained in:
Phoenix616 2021-03-26 15:57:38 +01:00
parent b93361cd07
commit ce7cade0a5
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class ItemAliasModule implements Listener {
length = (short) entry.getValue().length();
code = entry.getKey();
} else if (typeParts.length > 1) {
String[] nameParts = entry.getValue().split("[ _]");
String[] nameParts = entry.getValue().toUpperCase(Locale.ROOT).split("[ _]");
if (typeParts.length == nameParts.length) {
boolean matched = true;
for (int i = 0; i < nameParts.length; i++) {