summaryrefslogtreecommitdiff
path: root/src/engine/M_chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/M_chunk.c')
-rw-r--r--src/engine/M_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/M_chunk.c b/src/engine/M_chunk.c
index 2227ee9..630e206 100644
--- a/src/engine/M_chunk.c
+++ b/src/engine/M_chunk.c
@@ -5,7 +5,7 @@ void M_generateChunk(M_Chunk *chunk)
for (int x=0;x<M_CHUNK_SIZE;x++)
for (int y=0;y<M_CHUNK_SIZE;y++)
for (int z=0;z<M_CHUNK_SIZE;z++) {
- if (x==M_CHUNK_SIZE) {
+ if (y==M_CHUNK_SIZE/2) {
M_Block block;
M_createBlock(&block, 1);
chunk->blocks[x][y][z] = block;