diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/MinedMap.cpp | 2 | ||||
-rw-r--r-- | src/World/Block.hpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/MinedMap.cpp b/src/MinedMap.cpp index bfd34b9..9de41d0 100644 --- a/src/MinedMap.cpp +++ b/src/MinedMap.cpp @@ -62,7 +62,7 @@ static void addChunk(uint32_t image[DIM*DIM], uint8_t lightmap[2*DIM*DIM], size_ const World::Block &block = layer.blocks[x][z]; image[i] = htonl(block.getColor()); - lightmap[2*i+1] = (1 - block.getBlockLight()/15.f)*192; + lightmap[2*i+1] = (1 - block.blockLight/15.f)*192; } } } diff --git a/src/World/Block.hpp b/src/World/Block.hpp index 81d8b27..4975faa 100644 --- a/src/World/Block.hpp +++ b/src/World/Block.hpp @@ -47,10 +47,6 @@ struct Block { Block(uint8_t id0, uint8_t data0, unsigned height0, uint8_t blockLight0, uint8_t skyLight0, uint8_t biome0) : id(id0), data(data0), height(height0), blockLight(blockLight0), skyLight(skyLight0), biome(biome0) {} - uint8_t getBlockLight() const { - return blockLight; - } - uint32_t getColor() const; }; |