From 12b1107923458d87191f7d795cf9c78c1ea821a9 Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Sun, 28 Jun 2026 20:57:29 +0800 Subject: [PATCH] fix(client-world): delay chunk request to wait for server central chunk generation --- src/gameplay/client_world.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gameplay/client_world.cpp b/src/gameplay/client_world.cpp index d58d408..5387348 100644 --- a/src/gameplay/client_world.cpp +++ b/src/gameplay/client_world.cpp @@ -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(); }