final int x = chunk.getBlockX(random);
final int z = chunk.getBlockZ(random);
final int y = getHighestWorkableBlock(world, x, z);
cactus.randomize();
if (y != -1 && cactus.canPlaceObject(world, x, y, z)) {
cactus.placeObject(world, x, y, z);
}
}
}
private int getHighestWorkableBlock(World world, int x, int z) {