final int y = getHighestWorkableBlock(world, x, z);
if (y == -1) {
return;
}
final WellObject well = new WellObject();
if (well.canPlaceObject(world, x, y, z)) {
well.placeObject(world, x, y, z);
}
}
private int getHighestWorkableBlock(World w, int x, int z) {