Force lowercase

This commit is contained in:
Jesse Boyd 2019-11-10 13:27:37 +00:00
parent f1b8510708
commit 93894aca96
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -41,6 +41,7 @@ public final class BlockUtil {
if (id.length() == 1 && id.charAt(0) == '*') { if (id.length() == 1 && id.charAt(0) == '*') {
return FuzzyBlockState.builder().type(BlockTypes.AIR).build(); return FuzzyBlockState.builder().type(BlockTypes.AIR).build();
} }
id = id.toLowerCase();
BlockType type = BlockType.REGISTRY.get(id); BlockType type = BlockType.REGISTRY.get(id);
if (type != null) { if (type != null) {
return type.getDefaultState(); return type.getDefaultState();