mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Optionally specify propagateSunlight area in calcLighting
This fixes the Mapgen V5 calcLighting segfault
This commit is contained in:
parent
00bca11f59
commit
7289d61e99
4 changed files with 39 additions and 21 deletions
|
@ -289,8 +289,10 @@ void MapgenV5::makeChunk(BlockMakeData *data)
|
|||
updateLiquid(&data->transforming_liquid, full_node_min, full_node_max);
|
||||
|
||||
// Calculate lighting
|
||||
if (flags & MG_LIGHT)
|
||||
calcLighting(node_min - v3s16(0, 1, 0), node_max + v3s16(0, 1, 0));
|
||||
if (flags & MG_LIGHT) {
|
||||
calcLighting(node_min - v3s16(0, 1, 0), node_max + v3s16(0, 1, 0),
|
||||
full_node_min, full_node_max);
|
||||
}
|
||||
|
||||
this->generating = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue