Force lowercase

This commit is contained in:
Jesse Boyd
2019-11-10 13:27:37 +00:00
parent f1b8510708
commit 93894aca96

View File

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