mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
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:
parent
0c9946621c
commit
41fd03f329
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user