summaryrefslogtreecommitdiffstats
path: root/src/World/Chunk.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2017-08-19 13:01:01 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2017-08-19 13:01:01 +0200
commitb04e1cb0566ae90cb8fea259db0ca65dd3176d93 (patch)
treec1f46ec218ec498222817d18dce93a61054f993b /src/World/Chunk.cpp
parent292f4f4f3bdc650e452652e76be03d39afec4036 (diff)
downloadMinedMap-b04e1cb0566ae90cb8fea259db0ca65dd3176d93.tar
MinedMap-b04e1cb0566ae90cb8fea259db0ca65dd3176d93.zip
BlockType: allow specifying visible and green value per damage value
Diffstat (limited to 'src/World/Chunk.cpp')
-rw-r--r--src/World/Chunk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/World/Chunk.cpp b/src/World/Chunk.cpp
index f722655..bf59068 100644
--- a/src/World/Chunk.cpp
+++ b/src/World/Chunk.cpp
@@ -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);