Skip to content

Commit bf987bf

Browse files
committed
Handle blit_back_with_light with empty area
fixes luanti-org#13306
1 parent 4a14a18 commit bf987bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/voxelalgorithms.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,9 @@ void blit_back_with_light(Map *map, MMVManip *vm,
10281028
std::map<v3s16, MapBlock*> *modified_blocks)
10291029
{
10301030
const NodeDefManager *ndef = map->getNodeDefManager();
1031+
1032+
if (vm->m_area.hasEmptyExtent())
1033+
return;
10311034
mapblock_v3 minblock = getNodeBlockPos(vm->m_area.MinEdge);
10321035
mapblock_v3 maxblock = getNodeBlockPos(vm->m_area.MaxEdge);
10331036
// First queue is for day light, second is for night light.

0 commit comments

Comments
 (0)