summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/chunk.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index cc99b24..41f8014 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -232,7 +232,6 @@ xe::Model* Chunk::getMesh() {
}
uint8_t Chunk::getBlock(int32_t x, int32_t y, int32_t z) {
- if(!generated) return INVALID;
if(y > 256) return AIR;
if(y < 0) return INVALID;
int chunkX = gridX;
@@ -264,7 +263,6 @@ uint8_t Chunk::getBlock(int32_t x, int32_t y, int32_t z) {
}
void Chunk::setBlock(int32_t x, int32_t y, int32_t z, uint8_t block) {
- if(!generated) return;
int index = x + (z * 16) + (y * 256);
cubes[index] = block;
}