[ServerWorld] Fixed holes in the world.

master
Quentin Bazin 2021-05-16 18:24:11 +02:00
parent dd9b56f66d
commit 6f97f53416
1 changed files with 1 additions and 0 deletions

View File

@ -111,6 +111,7 @@ void ServerWorld::update(bool doTick) {
ServerChunk &chunk = getOrCreateChunk(chunkPos.x, chunkPos.y, chunkPos.z);
generateChunk(chunk);
player.addLoadedChunk(chunkPos);
sendChunkData(*player.client(), chunk);
}
// gkDebug() << "OK for chunk" << chunkPos.x << chunkPos.y << chunkPos.z << ":" << glm::length(playerPos - chunkWorldPos) << "<" << (int)ServerConfig::renderDistance * CHUNK_WIDTH;