LightUpdate: fixed double-updated nodes not getting light propagated appropriately

This can happen when a light source is removed and later encountering another light source to fill the gap. A higher light level may get set and then not propagated. This bug is difficult to explain, but fairly easy to reproduce.
This commit is contained in:
Dylan K. Taylor 2018-10-19 16:55:32 +01:00
parent 0c9946621c
commit 41fd03f329

View File

@ -106,6 +106,8 @@ abstract class LightUpdate{
while(!$this->spreadQueue->isEmpty()){
list($x, $y, $z) = $this->spreadQueue->dequeue();
unset($this->spreadVisited[Level::blockHash($x, $y, $z)]);
if(!$this->subChunkHandler->moveTo($x, $y, $z)){
continue;
}