Fix build

This commit is contained in:
Dylan K. Taylor 2023-05-02 14:21:33 +01:00
parent 3366e1084b
commit d0d263191d
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 7 deletions

View File

@ -176,7 +176,7 @@ abstract class LightUpdate{
$subChunk = $subChunkExplorer->currentSubChunk;
$lightArray = $this->getCurrentLightArray();
}
assert($lightArray !== null);
assert($subChunk !== null);
$this->computeSpreadLight($cx, $cy, $cz, $newAdjacentLight, $context, $lightArray, $subChunk);
}
}

View File

@ -1160,11 +1160,6 @@ parameters:
count: 1
path: ../../../src/world/light/LightPopulationTask.php
-
message: "#^Cannot call method getBlockStateId\\(\\) on pocketmine\\\\world\\\\format\\\\SubChunk\\|null\\.$#"
count: 1
path: ../../../src/world/light/LightUpdate.php
-
message: "#^Cannot call method getBlockSkyLightArray\\(\\) on pocketmine\\\\world\\\\format\\\\SubChunk\\|null\\.$#"
count: 1
@ -1172,7 +1167,7 @@ parameters:
-
message: "#^Cannot call method getBlockStateId\\(\\) on pocketmine\\\\world\\\\format\\\\SubChunk\\|null\\.$#"
count: 1
count: 2
path: ../../../src/world/light/SkyLightUpdate.php
-