From 20c53c7473fc6cc08944f502f078dfe57bcae1c9 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 21 Oct 2022 17:46:35 +0200 Subject: Broken infinite world --- src/World/Generator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/World/Generator.cpp') diff --git a/src/World/Generator.cpp b/src/World/Generator.cpp index d7bb038..757abf2 100644 --- a/src/World/Generator.cpp +++ b/src/World/Generator.cpp @@ -2,8 +2,8 @@ namespace MC::World { -Chunk Generator::generate(uint32_t _x, uint32_t _y) { - Chunk chunk; +Chunk Generator::generate(int64_t chunk_x, int64_t chunk_y) { + Chunk chunk(chunk_x, chunk_y); for (int y = 0; y < CHUNK_HEIGHT; y++) { BlockType type = BlockType::Air; -- cgit 1.4.1