geforkt von Mirrors/FastAsyncWorldEdit
Parser must use lowercase.
Dieser Commit ist enthalten in:
Ursprung
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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren