mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
LightArray: hide constants ZERO and FIFTEEN from the API
this makes it easier to implement this in C++ with the same API. Since the C++ version doesn't use strings, these constants aren't needed anyway.
This commit is contained in:
@ -46,8 +46,8 @@ class SubChunk implements SubChunkInterface{
|
||||
$this->defaultBlock = $default;
|
||||
$this->blockLayers = $blocks;
|
||||
|
||||
$this->skyLight = $skyLight ?? new LightArray(LightArray::FIFTEEN);
|
||||
$this->blockLight = $blockLight ?? new LightArray(LightArray::ZERO);
|
||||
$this->skyLight = $skyLight ?? LightArray::fill(15);
|
||||
$this->blockLight = $blockLight ?? LightArray::fill(0);
|
||||
}
|
||||
|
||||
public function isEmptyAuthoritative() : bool{
|
||||
|
Reference in New Issue
Block a user