From 2e292b67a0a02b045969034c06aaf92b42a83a81 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 27 Jun 2013 17:06:52 -0400 Subject: Add Lua on_mapgen_init callback, and minetest.set_mapgen_params API --- src/mapgen_v6.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mapgen_v6.cpp') 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; } -- cgit v1.2.3