BUILDTOOLS-251: Make much of Bukkit locale independent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2016-06-26 19:31:59 +10:00
parent b54985de63
commit 7f7f1608e8
17 changed files with 41 additions and 41 deletions

View File

@@ -215,7 +215,7 @@ public enum EntityType {
static {
for (EntityType type : values()) {
if (type.name != null) {
NAME_MAP.put(type.name.toLowerCase(), type);
NAME_MAP.put(type.name.toLowerCase(java.util.Locale.ENGLISH), type);
}
if (type.typeId > 0) {
ID_MAP.put(type.typeId, type);
@@ -272,7 +272,7 @@ public enum EntityType {
if (name == null) {
return null;
}
return NAME_MAP.get(name.toLowerCase());
return NAME_MAP.get(name.toLowerCase(java.util.Locale.ENGLISH));
}
/**