mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-07-12 09:59:05 +02:00
BlockType: allow specifying visible and green value per damage value
This commit is contained in:
parent
292f4f4f3b
commit
b04e1cb056
4 changed files with 4617 additions and 266 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue