Move heightmap calculation logic to SkyLightUpdate

This commit is contained in:
Dylan K. Taylor
2020-10-31 23:34:04 +00:00
parent 59a3e8c096
commit c39a1407a2
3 changed files with 72 additions and 75 deletions

View File

@ -560,11 +560,6 @@ parameters:
count: 1
path: ../../../src/world/biome/BiomeRegistry.php
-
message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#"
count: 2
path: ../../../src/world/format/Chunk.php
-
message: "#^Method pocketmine\\\\world\\\\format\\\\Chunk\\:\\:getSubChunk\\(\\) should return pocketmine\\\\world\\\\format\\\\SubChunk but returns pocketmine\\\\world\\\\format\\\\SubChunk\\|null\\.$#"
count: 1
@ -751,13 +746,13 @@ parameters:
path: ../../../src/world/light/SkyLightUpdate.php
-
message: "#^Cannot call method recalculateHeightMapColumn\\(\\) on pocketmine\\\\world\\\\format\\\\Chunk\\|null\\.$#"
message: "#^Parameter \\#1 \\$chunk of static method pocketmine\\\\world\\\\light\\\\SkyLightUpdate\\:\\:recalculateHeightMapColumn\\(\\) expects pocketmine\\\\world\\\\format\\\\Chunk, pocketmine\\\\world\\\\format\\\\Chunk\\|null given\\.$#"
count: 1
path: ../../../src/world/light/SkyLightUpdate.php
-
message: "#^Only booleans are allowed in an if condition, bool\\|null given\\.$#"
count: 1
count: 3
path: ../../../src/world/light/SkyLightUpdate.php
-
@ -771,7 +766,7 @@ parameters:
path: ../../../src/world/light/SkyLightUpdate.php
-
message: "#^Cannot call method recalculateHeightMap\\(\\) on pocketmine\\\\world\\\\format\\\\Chunk\\|null\\.$#"
message: "#^Parameter \\#1 \\$chunk of static method pocketmine\\\\world\\\\light\\\\SkyLightUpdate\\:\\:recalculateHeightMap\\(\\) expects pocketmine\\\\world\\\\format\\\\Chunk, pocketmine\\\\world\\\\format\\\\Chunk\\|null given\\.$#"
count: 1
path: ../../../src/world/light/SkyLightUpdate.php