mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Rename Chunk::getWritableSubChunk() -> Chunk::getSubChunkChecked()
this is not specific to 'writable', it's just an opt-in to checked bounds so that an EmptySubChunk will never be received.
This commit is contained in:
@@ -104,10 +104,10 @@ class LightPopulationTask extends AsyncTask{
|
||||
$blockLightArrays = igbinary_unserialize($this->resultBlockLightArrays);
|
||||
|
||||
foreach($skyLightArrays as $y => $array){
|
||||
$chunk->getWritableSubChunk($y)->setBlockSkyLightArray($array);
|
||||
$chunk->getSubChunkChecked($y)->setBlockSkyLightArray($array);
|
||||
}
|
||||
foreach($blockLightArrays as $y => $array){
|
||||
$chunk->getWritableSubChunk($y)->setBlockLightArray($array);
|
||||
$chunk->getSubChunkChecked($y)->setBlockLightArray($array);
|
||||
}
|
||||
$chunk->setLightPopulated();
|
||||
}
|
||||
|
Reference in New Issue
Block a user