mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +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() {
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user