fix(server_world): send time before entity updates

This commit is contained in:
2026-08-04 11:27:40 +08:00
parent d970988022
commit 67fbbe1229

View File

@@ -528,6 +528,7 @@ void ServerWorld::hot_reload() {
void ServerWorld::update() { void ServerWorld::update() {
// poll_finished_chunks(); // poll_finished_chunks();
send_time();
m_entity_manager.update(); m_entity_manager.update();
{ {
bool consumed = false; bool consumed = false;
@@ -554,7 +555,6 @@ void ServerWorld::update() {
} }
} }
send_time();
for (auto& [id, timer] : m_timers) { for (auto& [id, timer] : m_timers) {
timer.update(); timer.update();
} }