[ServerWorld] Tree gen fixed.
This commit is contained in:
parent
a2c49a2b4e
commit
09821a0dd0
@ -110,11 +110,11 @@ void ServerWorld::sendRequestedData(Client &client, int cx, int cy, int cz) {
|
||||
if (!chunk) {
|
||||
auto it = m_chunks.emplace(gk::Vector3i{cx, cy, cz}, new ServerChunk(cx, cy, cz));
|
||||
chunk = it.first->second.get();
|
||||
|
||||
// Create our neighbours so that we can generate and process lights correctly
|
||||
createChunkNeighbours(chunk);
|
||||
}
|
||||
|
||||
// Create our neighbours so that we can generate and process lights correctly
|
||||
createChunkNeighbours(chunk);
|
||||
|
||||
// Generate and update lights
|
||||
chunk->generate();
|
||||
chunk->updateLights();
|
||||
|
Loading…
x
Reference in New Issue
Block a user