X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Fworld%2FChunkTest.cpp;h=c40f9da917a979abcc79d62f6c766a6bc5e5a4cb;hb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;hp=0da68d045d0dd04b0dada4d0150c9435355fade8;hpb=825f479edf9867938b6789215ad7ae6303596cba;p=blank.git diff --git a/tst/world/ChunkTest.cpp b/tst/world/ChunkTest.cpp index 0da68d0..c40f9da 100644 --- a/tst/world/ChunkTest.cpp +++ b/tst/world/ChunkTest.cpp @@ -380,6 +380,8 @@ void ChunkTest::testLight() { void ChunkTest::testLightPropagation() { unique_ptr chunk(new Chunk(types)); + // this is required to make the chunk do lighting propagation at all + chunk->ScanLights(); // 0 air, 1 solid, 2 solid and emits light level of 5 chunk->SetBlock(Chunk::Pos(7, 7, 7), Block(2));