mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
move Lighting instance to ChunksController
This commit is contained in:
parent
c5049d0e24
commit
b7664b4188
14 changed files with 60 additions and 61 deletions
|
|
@ -20,12 +20,12 @@ static debug::Logger logger("level-control");
|
|||
LevelController::LevelController(Engine* engine, std::unique_ptr<Level> levelPtr)
|
||||
: settings(engine->getSettings()),
|
||||
level(std::move(levelPtr)),
|
||||
blocks(std::make_unique<BlocksController>(
|
||||
*level, settings.chunks.padding.get()
|
||||
)),
|
||||
chunks(std::make_unique<ChunksController>(
|
||||
*level, settings.chunks.padding.get()
|
||||
)) {
|
||||
blocks = std::make_unique<BlocksController>(
|
||||
*level, *chunks->lighting, settings.chunks.padding.get()
|
||||
);
|
||||
scripting::on_world_load(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue