Rename Chunk::getSubChunkChecked() -> getSubChunk()

This commit is contained in:
Dylan K. Taylor
2020-10-31 23:12:03 +00:00
parent e09d78238f
commit 4549522289
7 changed files with 16 additions and 16 deletions

View File

@ -111,10 +111,10 @@ class SkyLightUpdate extends LightUpdate{
$lowestClearSubChunk = ($highestHeightMapPlusOne >> 4) + (($highestHeightMapPlusOne & 0xf) !== 0 ? 1 : 0);
$chunkHeight = $chunk->getSubChunks()->count();
for($y = 0; $y < $lowestClearSubChunk && $y < $chunkHeight; $y++){
$chunk->getSubChunkChecked($y)->setBlockSkyLightArray(LightArray::fill(0));
$chunk->getSubChunk($y)->setBlockSkyLightArray(LightArray::fill(0));
}
for($y = $lowestClearSubChunk, $yMax = $chunkHeight; $y < $yMax; $y++){
$chunk->getSubChunkChecked($y)->setBlockSkyLightArray(LightArray::fill(15));
$chunk->getSubChunk($y)->setBlockSkyLightArray(LightArray::fill(15));
}
$lightSources = 0;