summaryrefslogtreecommitdiffstats
path: root/src/World/Block.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/World/Block.hpp')
-rw-r--r--src/World/Block.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/World/Block.hpp b/src/World/Block.hpp
index 3613cac..f078503 100644
--- a/src/World/Block.hpp
+++ b/src/World/Block.hpp
@@ -44,6 +44,8 @@ struct Block {
uint8_t biome;
Block() : id(0), data(0), height(0), blockLight(0), skyLight(0), biome(0) {}
+ 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) {}
uint32_t getColor() const;
};