if (random.nextInt(waterOdd) == 0) {
final int x = chunk.getBlockX(random);
final int z = chunk.getBlockZ(random);
final int y = random.nextInt(128);
if (!LogicUtil.equalsAny(world.getBiome(x, y, z), VanillaBiomes.DESERT, VanillaBiomes.DESERT_HILLS)) {
final PondObject pond = new PondObject(random, PondObject.PondType.WATER);
if (pond.canPlaceObject(world, x, y, z)) {
pond.placeObject(world, x, y, z);
}
}
}
if (random.nextInt(lavaOdd) == 0) {
final int x = chunk.getBlockX(random);
final int z = chunk.getBlockZ(random);
final int y = random.nextInt(120) + 8;
if (y >= 63 && random.nextInt(lavaSurfaceOdd) != 0) {
return;
}
final PondObject pond = new PondObject(random, PondObject.PondType.LAVA);
if (pond.canPlaceObject(world, x, y, z)) {
pond.placeObject(world, x, y, z);
}
}
}