for (int z = 0; z < ChunkConstants.SIZE_Z; z++) {
for (int y = 0; y < ChunkConstants.SIZE_Y; y++) {
Block block = chunk.getBlock(x, y, z);
if (block.getLuminance() > 0) {
chunk.setLight(x, y, z, block.getLuminance());
lightPropagator.propagateFrom(new Vector3i(x, y, z), block.getLuminance());
}
}
}
}
lightPropagator.process();