Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
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();
|
||||
} 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) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren