Fixed empty chunks on generation, closes #2998

This commit is contained in:
Shoghi Cervantes
2015-05-10 13:18:39 +02:00
parent db409851e9
commit 925b0c1b07
3 changed files with 12 additions and 15 deletions

View File

@ -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);