mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 09:47:01 +08:00
fix(server_world): send time before entity updates
This commit is contained in:
@@ -528,6 +528,7 @@ void ServerWorld::hot_reload() {
|
||||
|
||||
void ServerWorld::update() {
|
||||
// poll_finished_chunks();
|
||||
send_time();
|
||||
m_entity_manager.update();
|
||||
{
|
||||
bool consumed = false;
|
||||
@@ -554,7 +555,6 @@ void ServerWorld::update() {
|
||||
}
|
||||
}
|
||||
|
||||
send_time();
|
||||
for (auto& [id, timer] : m_timers) {
|
||||
timer.update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user