Merge branch 'stable'

This commit is contained in:
Dylan K. Taylor
2020-01-29 20:01:30 +00:00
2 changed files with 4 additions and 5 deletions

View File

@ -320,11 +320,9 @@ class Chunk{
$light = 15;
for(; $y >= 0; --$y){
if($light > 0){
$light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)];
if($light <= 0){
break;
}
$light -= BlockFactory::$lightFilter[$this->getFullBlock($x, $y, $z)];
if($light <= 0){
break;
}
$this->setBlockSkyLight($x, $y, $z, $light);
}