LightUpdate: account for virtual nodes in prepareNodes()

fixes #3959
This commit is contained in:
Dylan K. Taylor
2022-05-21 17:07:49 +01:00
parent fcb2ccab99
commit 01b0742bd4

View File

@ -114,6 +114,9 @@ abstract class LightUpdate{
$context->removalQueue->enqueue([$x, $y, $z, $oldLevel]);
}
}
}elseif($this->getEffectiveLight($x, $y, $z) > 0){ //outside the chunk (e.g. virtual sky light from y=256)
$context->spreadVisited[$blockHash] = true;
$context->spreadQueue->enqueue([$x, $y, $z]);
}
}
return $context;