From 54a773be0c507bad17484ac068f311f751ef7689 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 7 Jul 2022 20:04:16 +0100 Subject: [PATCH] SubChunk::__construct(): rename blocks to blockLayers --- src/world/format/SubChunk.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/world/format/SubChunk.php b/src/world/format/SubChunk.php index 9f1b94bec..d10968160 100644 --- a/src/world/format/SubChunk.php +++ b/src/world/format/SubChunk.php @@ -32,22 +32,17 @@ class SubChunk{ public const COORD_MASK = ~(~0 << self::COORD_BIT_SIZE); public const EDGE_LENGTH = 1 << self::COORD_BIT_SIZE; - /** @var PalettedBlockArray[] */ - private array $blockLayers; - /** * SubChunk constructor. * - * @param PalettedBlockArray[] $blocks + * @param PalettedBlockArray[] $blockLayers */ public function __construct( private int $emptyBlockId, - array $blocks, //TODO: promote this once we can break BC again (needs a name change) + private array $blockLayers, private ?LightArray $skyLight = null, private ?LightArray $blockLight = null - ){ - $this->blockLayers = $blocks; - } + ){} /** * Returns whether this subchunk contains any non-air blocks.