mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
fix(client-world): delay chunk request to wait for server central chunk generation
This commit is contained in:
@@ -281,6 +281,12 @@ void ClientWorld::start_client_thread(std::string_view uuid) {
|
||||
m_game_running = true;
|
||||
client_run(token);
|
||||
});
|
||||
|
||||
// Wait for 20 ticks, after the server's central chunk is generated, then
|
||||
// request chunks
|
||||
|
||||
std::this_thread::sleep_for(milliseconds(20 * DEFAULT_PER_TICK_TIME));
|
||||
|
||||
request_chunk();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user