mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Commands now also use hMod to resolve block names into block IDs.
This commit is contained in:
parent
01340152e3
commit
e2731bf834
@ -224,6 +224,12 @@ public BaseBlock getBlock(String arg, boolean allAllowed)
|
||||
blockType = BlockType.fromID(Integer.parseInt(testID));
|
||||
} catch (NumberFormatException e) {
|
||||
blockType = BlockType.lookup(testID);
|
||||
if (blockType == null) {
|
||||
int t = etc.getDataSource().getItem(testID);
|
||||
if (t > 0 && t < 256) {
|
||||
blockType = BlockType.fromID(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (blockType == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user