mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-07 23:52:11 -07:00
BUILDTOOLS-251: Make much of Bukkit locale independent
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -707,7 +707,7 @@ public enum Material {
|
||||
} catch (NumberFormatException ex) {}
|
||||
|
||||
if (result == null) {
|
||||
String filtered = name.toUpperCase();
|
||||
String filtered = name.toUpperCase(java.util.Locale.ENGLISH);
|
||||
|
||||
filtered = filtered.replaceAll("\\s+", "_").replaceAll("\\W", "");
|
||||
result = BY_NAME.get(filtered);
|
||||
|
Reference in New Issue
Block a user