Exclude unpopulated chunks from biome averaging

Avoids weirdly colored stripes at the edges of the map.
This commit is contained in:
Matthias Schiffer 2020-06-20 02:11:22 +02:00
parent eb831608e0
commit 03ae9cf302
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 8 additions and 2 deletions

View file

@ -78,7 +78,7 @@ uint8_t Chunk::getBiome(size_t x, size_t y, size_t z) const {
else if (biomeBytes)
return biomeBytes->getValue(z*SIZE + x);
else
return 0;
return 0xff;
}
Block Chunk::getBlock(size_t x, Chunk::Height height, size_t z) const {