Add files via upload

This commit is contained in:
Onran
2024-02-23 11:44:48 +09:00
committed by GitHub
parent c126b627de
commit cfacf6f1eb
+2 -3
View File
@@ -10,7 +10,6 @@
#include "../voxels/Chunks.h" #include "../voxels/Chunks.h"
#include "../voxels/ChunksStorage.h" #include "../voxels/ChunksStorage.h"
#include "../voxels/WorldGenerator.h" #include "../voxels/WorldGenerator.h"
#include "../world/WorldTypes.h"
#include "../graphics/Mesh.h" #include "../graphics/Mesh.h"
#include "../lighting/Lighting.h" #include "../lighting/Lighting.h"
#include "../files/WorldFiles.h" #include "../files/WorldFiles.h"
@@ -27,7 +26,7 @@ ChunksController::ChunksController(Level* level, uint padding)
chunks(level->chunks), chunks(level->chunks),
lighting(level->lighting), lighting(level->lighting),
padding(padding), padding(padding),
generator(WorldTypes::createWorldGenerator(level->getWorld()->getType(), level->content)) { generator(new WorldGenerator(level->content)) {
} }
ChunksController::~ChunksController(){ ChunksController::~ChunksController(){
@@ -131,4 +130,4 @@ void ChunksController::createChunk(int x, int z) {
} }
chunk->setLoaded(true); chunk->setLoaded(true);
chunk->setReady(true); chunk->setReady(true);
} }