mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-07 08:09:07 +02:00
Exclude unpopulated chunks from biome averaging
Avoids weirdly colored stripes at the edges of the map.
This commit is contained in:
parent
eb831608e0
commit
03ae9cf302
2 changed files with 8 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue