mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Fixed empty chunks on generation, closes #2998
This commit is contained in:
@ -305,6 +305,10 @@ class Chunk extends BaseChunk{
|
||||
$chunk->x = $chunkX;
|
||||
$chunk->z = $chunkZ;
|
||||
|
||||
for($y = 0; $y < 8; ++$y){
|
||||
$chunk->sections[$y] = new EmptyChunkSection($y);
|
||||
}
|
||||
|
||||
$chunk->heightMap = array_fill(0, 256, 0);
|
||||
$chunk->biomeColors = array_fill(0, 256, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user