mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed a bug in light removal
This commit is contained in:
parent
30c5487f94
commit
8cca8e1256
@ -137,7 +137,7 @@ abstract class LightUpdate{
|
|||||||
if($current !== 0 and $current < $oldAdjacentLevel){
|
if($current !== 0 and $current < $oldAdjacentLevel){
|
||||||
$this->setLight($x, $y, $z, 0);
|
$this->setLight($x, $y, $z, 0);
|
||||||
|
|
||||||
if(!isset($visited[$index = Level::blockHash($x, $y, $z)])){
|
if(!isset($this->removalVisited[$index = Level::blockHash($x, $y, $z)])){
|
||||||
$this->removalVisited[$index] = true;
|
$this->removalVisited[$index] = true;
|
||||||
if($current > 1){
|
if($current > 1){
|
||||||
$this->removalQueue->enqueue([$x, $y, $z, $current]);
|
$this->removalQueue->enqueue([$x, $y, $z, $current]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user