diff options
author | madmaxoft <github@xoft.cz> | 2014-08-14 01:04:01 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-08-14 01:04:01 +0200 |
commit | 45068f9bf45fe952429bd200d9d9d747eeba61e8 (patch) | |
tree | 94adc35088c801f5f1842aa95578b06831da6b53 /src/ClientHandle.cpp | |
parent | RankMgr: Fixed multithreading issues. (diff) | |
parent | CheckBasicStyle checks the src folder as well. (diff) | |
download | cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar.gz cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar.bz2 cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar.lz cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar.xz cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.tar.zst cuberite-45068f9bf45fe952429bd200d9d9d747eeba61e8.zip |
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r-- | src/ClientHandle.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 3e046f38d..d386f3576 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -341,8 +341,8 @@ void cClientHandle::Authenticate(const AString & a_Name, const AString & a_UUID, m_Protocol->SendWeather(World->GetWeather()); } - // Send time - m_Protocol->SendTimeUpdate(World->GetWorldAge(), World->GetTimeOfDay()); + // Send time: + m_Protocol->SendTimeUpdate(World->GetWorldAge(), World->GetTimeOfDay(), World->IsDaylightCycleEnabled()); // Send contents of the inventory window m_Protocol->SendWholeInventory(*m_Player->GetWindow()); @@ -2589,9 +2589,9 @@ void cClientHandle::SendThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ) -void cClientHandle::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay) +void cClientHandle::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_DoDaylightCycle) { - m_Protocol->SendTimeUpdate(a_WorldAge, a_TimeOfDay); + m_Protocol->SendTimeUpdate(a_WorldAge, a_TimeOfDay, a_DoDaylightCycle); } |