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
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

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;