diff options
Diffstat (limited to 'src/chunk.c')
| -rw-r--r-- | src/chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk.c b/src/chunk.c index 982882d..3741629 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -114,7 +114,7 @@ void _chunk_plains_gen(struct chunk* chunk) { for (int h = 0; h < z_final; h++) { struct block* blk = malloc(sizeof(struct block)); // Adjust block coordinates with global chunk coordinates - vec3 pos = {x + (CHUNK_WIDTH * chunk->coord[0]), h, -y - 1 - (CHUNK_LENGTH * chunk->coord[1])}; + vec3 pos = {x + (CHUNK_WIDTH * chunk->coord[0]), h, -y - (CHUNK_LENGTH * chunk->coord[1])}; block_init(pos, blk); chunk->blocks[x][y][h] = blk; } |
