Level: Remove unnecessary BlockFactory::$lightFilter usage

This commit is contained in:
Dylan K. Taylor 2018-09-20 16:16:28 +01:00
parent 668da0772a
commit 19e68f98a7

View File

@ -1432,7 +1432,7 @@ class Level implements ChunkManager, Metadatable{
$this->skyLightUpdate->setAndUpdateLight($x, $i, $z, 15);
}
}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();