Merge branch 'next-major' into modern-world-support

This commit is contained in:
Dylan K. Taylor
2022-04-28 21:06:44 +01:00
173 changed files with 692 additions and 1339 deletions

View File

@ -33,22 +33,18 @@ use pocketmine\world\World;
use function max;
class SkyLightUpdate extends LightUpdate{
/**
* @var true[]
* @phpstan-var array<int, true>
*/
private $directSkyLightBlockers;
/**
* @param int[] $lightFilters
* @param true[] $directSkyLightBlockers
* @phpstan-param array<int, int> $lightFilters
* @phpstan-param array<int, true> $directSkyLightBlockers
*/
public function __construct(SubChunkExplorer $subChunkExplorer, array $lightFilters, array $directSkyLightBlockers){
public function __construct(
SubChunkExplorer $subChunkExplorer,
array $lightFilters,
private array $directSkyLightBlockers
){
parent::__construct($subChunkExplorer, $lightFilters);
$this->directSkyLightBlockers = $directSkyLightBlockers;
}
protected function getCurrentLightArray() : LightArray{