summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol125.cpp
diff options
context:
space:
mode:
authorFranz Reiter <franzi.moos@googlemail.com>2014-08-12 16:05:33 +0200
committerFranz Reiter <franzi.moos@googlemail.com>2014-08-12 16:05:33 +0200
commit8f0c4911f7564f6f8b73ad3f6920b2ac649f422d (patch)
tree8c4406712a9634f3b300fb79b1fb4f462f9b2b59 /src/Protocol/Protocol125.cpp
parentMerge pull request #1316 from ChriPiv/master (diff)
parentExported daylight cycle flag to the protocol. (diff)
downloadcuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar.gz
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar.bz2
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar.lz
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar.xz
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.tar.zst
cuberite-8f0c4911f7564f6f8b73ad3f6920b2ac649f422d.zip
Diffstat (limited to 'src/Protocol/Protocol125.cpp')
-rw-r--r--src/Protocol/Protocol125.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp
index 538d31642..a66c64309 100644
--- a/src/Protocol/Protocol125.cpp
+++ b/src/Protocol/Protocol125.cpp
@@ -1072,8 +1072,11 @@ void cProtocol125::SendThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ)
-void cProtocol125::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay)
+void cProtocol125::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_DoDaylightCycle)
{
+ // This protocol doesn't support a_DoDaylightCycle on false.
+ UNUSED(a_DoDaylightCycle);
+
cCSLock Lock(m_CSPacket);
WriteByte (PACKET_UPDATE_TIME);
// Use a_WorldAge for daycount, and a_TimeOfDay for the proper time of day: