mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
LightUpdate: remove unused field
This commit is contained in:
@ -32,9 +32,6 @@ use function max;
|
|||||||
//TODO: make light updates asynchronous
|
//TODO: make light updates asynchronous
|
||||||
abstract class LightUpdate{
|
abstract class LightUpdate{
|
||||||
|
|
||||||
/** @var ChunkManager */
|
|
||||||
protected $world;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var \SplFixedArray|int[]
|
* @var \SplFixedArray|int[]
|
||||||
* @phpstan-var \SplFixedArray<int>
|
* @phpstan-var \SplFixedArray<int>
|
||||||
@ -79,13 +76,12 @@ abstract class LightUpdate{
|
|||||||
* @phpstan-param \SplFixedArray<int> $lightFilters
|
* @phpstan-param \SplFixedArray<int> $lightFilters
|
||||||
*/
|
*/
|
||||||
public function __construct(ChunkManager $world, \SplFixedArray $lightFilters){
|
public function __construct(ChunkManager $world, \SplFixedArray $lightFilters){
|
||||||
$this->world = $world;
|
|
||||||
$this->lightFilters = $lightFilters;
|
$this->lightFilters = $lightFilters;
|
||||||
|
|
||||||
$this->removalQueue = new \SplQueue();
|
$this->removalQueue = new \SplQueue();
|
||||||
$this->spreadQueue = new \SplQueue();
|
$this->spreadQueue = new \SplQueue();
|
||||||
|
|
||||||
$this->subChunkHandler = new SubChunkIteratorManager($this->world);
|
$this->subChunkHandler = new SubChunkIteratorManager($world);
|
||||||
$this->subChunkHandler->onSubChunkChange(\Closure::fromCallable([$this, 'updateLightArrayRef']));
|
$this->subChunkHandler->onSubChunkChange(\Closure::fromCallable([$this, 'updateLightArrayRef']));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user