summaryrefslogtreecommitdiffstats
path: root/src/World
diff options
context:
space:
mode:
Diffstat (limited to 'src/World')
-rw-r--r--src/World/Block.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/World/Block.hpp b/src/World/Block.hpp
index f078503..b636f06 100644
--- a/src/World/Block.hpp
+++ b/src/World/Block.hpp
@@ -47,6 +47,10 @@ 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;
};