Add a few more strings

This commit is contained in:
Matthew Miller
2019-10-22 20:14:52 +10:00
parent c01d2f7c24
commit 455a40b3fc
4 changed files with 35 additions and 17 deletions

View File

@ -162,14 +162,12 @@ public class GardenPatchGenerator implements RegionFunction {
position = position.add(0, 1, 0);
}
if (editSession.getBlock(position.add(0, -1, 0)).getBlockType() != BlockTypes.GRASS_BLOCK) {
if (!editSession.getBlock(position.add(0, -1, 0)).getBlockType().equals(BlockTypes.GRASS_BLOCK)) {
return false;
}
if (editSession.getBlock(position).getBlockType().getMaterial().isAir()) {
editSession.setBlock(position, leafPattern);
}
setBlockIfAir(editSession, position, leafPattern);
placeVine(position, position.add(0, 0, 1));
placeVine(position, position.add(0, 0, -1));