}
// Has nearby non-water blocks?
final Random rand = GenericMath.getRandom();
if (rand.nextInt(1000) == 0) {
EffectIterator iterator = EffectRange.NEIGHBORS.iterator();
while (iterator.hasNext()) {
if (!(block.translate(iterator.next()).getMaterial() instanceof Water)) {
//Make sure you don't eliminate water below
Block below = block.translate(BlockFace.BOTTOM);
if (below.getMaterial() == VanillaMaterials.WATER) {
below.setMaterial(getStationaryMaterial());
}