Block block1 = Block.get(blocksArray[Chunk.chunkIndex(x, y, z)]);
if (!block1.isWater())
break;
depth += 1;
}
<BUG>ColorUtil.getRGBAComponents(Block.WATER.getTexture(data).getAvgColor(), blockColor);
</BUG>
blockColor[3] = QuickMath.max(.5f, 1.f - depth / 32.f);
break;
default:

Block block1 = Block.get(blocksArray[Chunk.chunkIndex(x, y, z)]);
if (!block1.isWater())
break;
depth += 1;
}
ColorUtil.getRGBAComponents(Texture.water.getAvgColor(), blockColor);
blockColor[3] = QuickMath.max(.5f, 1.f - depth / 32.f);
break;
default:
