}
}
@Test
public void blockedSunlightPropagation() {
Chunk chunk = new ChunkImpl(0, 0, 0);
for (Vector3i pos : Region3i.createFromMinAndSize(new Vector3i(0, 4, 0), new Vector3i(ChunkConstants.SIZE_X, 1, ChunkConstants.SIZE_Z))) {
chunk.setBlock(pos, solidBlock);
}
InternalLightProcessor.generateInternalLighting(chunk);
for (Vector3i pos : Region3i.createFromMinAndSize(new Vector3i(0, 0, 0), new Vector3i(ChunkConstants.SIZE_X, 5,
ChunkConstants.SIZE_Z))) {
assertEquals("Incorrect lighting at " + pos, 0, chunk.getSunlight(pos));
}
}