mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 21:59:52 +00:00
Level: Remove unnecessary BlockFactory::$lightFilter usage
This commit is contained in:
parent
668da0772a
commit
19e68f98a7
@ -1432,7 +1432,7 @@ class Level implements ChunkManager, Metadatable{
|
|||||||
$this->skyLightUpdate->setAndUpdateLight($x, $i, $z, 15);
|
$this->skyLightUpdate->setAndUpdateLight($x, $i, $z, 15);
|
||||||
}
|
}
|
||||||
}else{ //No heightmap change, block changed "underground"
|
}else{ //No heightmap change, block changed "underground"
|
||||||
$this->skyLightUpdate->setAndUpdateLight($x, $y, $z, max(0, $this->getHighestAdjacentBlockSkyLight($x, $y, $z) - BlockFactory::$lightFilter[$source->getId()]));
|
$this->skyLightUpdate->setAndUpdateLight($x, $y, $z, max(0, $this->getHighestAdjacentBlockSkyLight($x, $y, $z) - $source->getLightFilter()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->timings->doBlockSkyLightUpdates->stopTiming();
|
$this->timings->doBlockSkyLightUpdates->stopTiming();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user