From cfacf6f1eb9fc88e4b3f3afebdf966435849753d Mon Sep 17 00:00:00 2001 From: Onran <100285264+Onran0@users.noreply.github.com> Date: Fri, 23 Feb 2024 11:44:48 +0900 Subject: [PATCH] Add files via upload --- src/logic/ChunksController.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/logic/ChunksController.cpp b/src/logic/ChunksController.cpp index 892af56d..7ffdc83f 100644 --- a/src/logic/ChunksController.cpp +++ b/src/logic/ChunksController.cpp @@ -10,7 +10,6 @@ #include "../voxels/Chunks.h" #include "../voxels/ChunksStorage.h" #include "../voxels/WorldGenerator.h" -#include "../world/WorldTypes.h" #include "../graphics/Mesh.h" #include "../lighting/Lighting.h" #include "../files/WorldFiles.h" @@ -27,7 +26,7 @@ ChunksController::ChunksController(Level* level, uint padding) chunks(level->chunks), lighting(level->lighting), padding(padding), - generator(WorldTypes::createWorldGenerator(level->getWorld()->getType(), level->content)) { + generator(new WorldGenerator(level->content)) { } ChunksController::~ChunksController(){ @@ -131,4 +130,4 @@ void ChunksController::createChunk(int x, int z) { } chunk->setLoaded(true); chunk->setReady(true); -} \ No newline at end of file +}