mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Parser must use lowercase.
This commit is contained in:
parent
965e977411
commit
1090c44a2e
@ -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 + "'");
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user