mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Chunk: remove useless condition from populateSkyLight()
this was detected by latest bleeding-edge PHPStan.
This commit is contained in:
parent
640df1003c
commit
64b3d02974
@ -440,11 +440,9 @@ class Chunk{
|
||||
|
||||
$light = 15;
|
||||
for(; $y >= 0; --$y){
|
||||
if($light > 0){
|
||||
$light -= BlockFactory::$lightFilter[$this->getBlockId($x, $y, $z)];
|
||||
if($light <= 0){
|
||||
break;
|
||||
}
|
||||
$light -= BlockFactory::$lightFilter[$this->getBlockId($x, $y, $z)];
|
||||
if($light <= 0){
|
||||
break;
|
||||
}
|
||||
$this->setBlockSkyLight($x, $y, $z, $light);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user