Parser must use lowercase.

This commit is contained in:
Matthew Miller 2018-07-24 20:46:35 +10:00
parent 965e977411
commit 1090c44a2e
2 changed files with 2 additions and 2 deletions

View File

@ -253,7 +253,7 @@ class DefaultBlockParser extends InputParser<BlockStateHolder> {
blockStates = blockInHand.getStates();
} else {
// Attempt to lookup a block from ID or name.
blockType = BlockTypes.get(typeString);
blockType = BlockTypes.get(typeString.toLowerCase());
if (blockType == null) {
throw new NoMatchException("Does not match a valid block type: '" + input + "'");

View File

@ -54,7 +54,7 @@ public class DefaultItemParser extends InputParser<BaseItem> {
if (item == null) {
item = WorldEdit.getInstance().getPlatformManager()
.queryCapability(Capability.GAME_HOOKS).getRegistries().getItemRegistry().createFromId(input);
.queryCapability(Capability.GAME_HOOKS).getRegistries().getItemRegistry().createFromId(input.toLowerCase());
}
if (item == null) {