mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Don't grow pumpkin patches on non-grass blocks.
This commit is contained in:
parent
c5fdfa7a0d
commit
b3e03f59ac
@ -163,6 +163,10 @@ public boolean apply(Vector position) throws WorldEditException {
|
||||
position = position.add(0, 1, 0);
|
||||
}
|
||||
|
||||
if (editSession.getBlock(position.add(0, -1, 0)).getType() != BlockID.GRASS) {
|
||||
return false;
|
||||
}
|
||||
|
||||
BaseBlock leavesBlock = new BaseBlock(BlockID.LEAVES);
|
||||
|
||||
editSession.setBlockIfAir(position, leavesBlock);
|
||||
|
Loading…
Reference in New Issue
Block a user