diff options
Diffstat (limited to 'src/mapgen_v6.cpp')
-rw-r--r-- | src/mapgen_v6.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp index d3db00dc2..7643f3a48 100644 --- a/src/mapgen_v6.cpp +++ b/src/mapgen_v6.cpp @@ -459,8 +459,9 @@ void MapgenV6::makeChunk(BlockMakeData *data) { } // Calculate lighting - calcLighting(node_min - v3s16(1, 1, 1) * MAP_BLOCKSIZE, - node_max + v3s16(1, 0, 1) * MAP_BLOCKSIZE); + if (!(flags & MG_NOLIGHT)) + calcLighting(node_min - v3s16(1, 1, 1) * MAP_BLOCKSIZE, + node_max + v3s16(1, 0, 1) * MAP_BLOCKSIZE); this->generating = false; } |