Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-28 03:40:05 +01:00
Don't grow pumpkin patches on non-grass blocks.
Dieser Commit ist enthalten in:
Ursprung
c5fdfa7a0d
Commit
b3e03f59ac
@ -163,6 +163,10 @@ public class GardenPatchGenerator implements RegionFunction {
|
|||||||
position = position.add(0, 1, 0);
|
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);
|
BaseBlock leavesBlock = new BaseBlock(BlockID.LEAVES);
|
||||||
|
|
||||||
editSession.setBlockIfAir(position, leavesBlock);
|
editSession.setBlockIfAir(position, leavesBlock);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren