mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
One step closer to multiplayer
This commit is contained in:
parent
9d9c9f5570
commit
0157213a56
26 changed files with 213 additions and 219 deletions
|
|
@ -24,8 +24,8 @@ const uint MIN_SURROUNDING = 9;
|
|||
|
||||
ChunksController::ChunksController(Level* level, uint padding)
|
||||
: level(level),
|
||||
chunks(level->chunks),
|
||||
lighting(level->lighting),
|
||||
chunks(level->chunks.get()),
|
||||
lighting(level->lighting.get()),
|
||||
padding(padding),
|
||||
generator(WorldGenerators::createGenerator(level->getWorld()->getGenerator(), level->content)) {
|
||||
}
|
||||
|
|
@ -131,4 +131,4 @@ void ChunksController::createChunk(int x, int z) {
|
|||
}
|
||||
chunk->setLoaded(true);
|
||||
chunk->setReady(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue