BlockType: allow specifying visible and green value per damage value

This commit is contained in:
Matthias Schiffer 2017-08-19 13:01:01 +02:00
parent 292f4f4f3b
commit b04e1cb056
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
4 changed files with 4617 additions and 266 deletions

View file

@ -182,7 +182,8 @@ Chunk::Blocks Chunk::getTopLayer() const {
continue;
uint8_t id = getBlockAt(x, y, z);
if (!Resource::BLOCK_TYPES[id].opaque)
uint8_t data = getDataAt(x, y, z);
if (!Resource::BLOCK_TYPES[id][data].opaque)
continue;
ret.blocks[x][z] = getBlock(x, y, z);