use Locale.ROOT for uppercase as well

This commit is contained in:
Jesse Boyd
2019-07-10 22:26:31 +10:00
parent a98a91e066
commit cafd4bfece
17 changed files with 43 additions and 30 deletions

View File

@ -859,7 +859,7 @@ public final class BlockTypes {
// Get the enum name (remove namespace if minecraft:)
int propStart = id.indexOf('[');
String typeName = id.substring(0, propStart == -1 ? id.length() : propStart);
String enumName = (typeName.startsWith("minecraft:") ? typeName.substring(10) : typeName).toUpperCase();
String enumName = (typeName.startsWith("minecraft:") ? typeName.substring(10) : typeName).toUpperCase(Locale.ROOT);
BlockType existing = new BlockType(id, internalId, states);