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();
|
blockStates = blockInHand.getStates();
|
||||||
} else {
|
} else {
|
||||||
// Attempt to lookup a block from ID or name.
|
// Attempt to lookup a block from ID or name.
|
||||||
blockType = BlockTypes.get(typeString);
|
blockType = BlockTypes.get(typeString.toLowerCase());
|
||||||
|
|
||||||
if (blockType == null) {
|
if (blockType == null) {
|
||||||
throw new NoMatchException("Does not match a valid block type: '" + input + "'");
|
throw new NoMatchException("Does not match a valid block type: '" + input + "'");
|
||||||
|
@ -54,7 +54,7 @@ public class DefaultItemParser extends InputParser<BaseItem> {
|
|||||||
|
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
item = WorldEdit.getInstance().getPlatformManager()
|
item = WorldEdit.getInstance().getPlatformManager()
|
||||||
.queryCapability(Capability.GAME_HOOKS).getRegistries().getItemRegistry().createFromId(input);
|
.queryCapability(Capability.GAME_HOOKS).getRegistries().getItemRegistry().createFromId(input.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item == null) {
|
if (item == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user