[ServerWorld] Tree gen fixed.

This commit is contained in:
Quentin Bazin 2020-01-21 12:07:44 +09:00
parent a2c49a2b4e
commit 09821a0dd0

View File

@ -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();