summaryrefslogtreecommitdiffstats
path: root/src/Broadcaster.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-03-20 21:58:19 +0100
committerGitHub <noreply@github.com>2021-03-20 21:58:19 +0100
commit90369deb5a870674ab02a26a93a71f06eafe9293 (patch)
treee37bb9272ea0265db7dce611120ed63381ca2626 /src/Broadcaster.cpp
parentDon't send ping updates one packet at a time (diff)
downloadcuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.gz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.bz2
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.lz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.xz
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.tar.zst
cuberite-90369deb5a870674ab02a26a93a71f06eafe9293.zip
Diffstat (limited to 'src/Broadcaster.cpp')
-rw-r--r--src/Broadcaster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Broadcaster.cpp b/src/Broadcaster.cpp
index 7cc3deaaa..445bb6d89 100644
--- a/src/Broadcaster.cpp
+++ b/src/Broadcaster.cpp
@@ -596,7 +596,7 @@ void cWorld::BroadcastTimeUpdate(const cClientHandle * a_Exclude)
{
ForClientsInWorld(*this, a_Exclude, [&](cClientHandle & a_Client)
{
- a_Client.SendTimeUpdate(GetWorldAge(), GetTimeOfDay(), IsDaylightCycleEnabled());
+ a_Client.SendTimeUpdate(GetWorldAge(), std::chrono::duration_cast<cTickTimeLong>(m_WorldDate).count(), IsDaylightCycleEnabled());
}
);
}