5960616263646566676869
final int y = getHighestWorkableBlock(world, x, z); if (y == -1) { continue; } if (tree.canPlaceObject(world, x, y, z)) { tree.placeObject(world, x, y, z); } } } private int getHighestWorkableBlock(World w, int x, int z) {