summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol14x.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2014-09-22 21:45:22 +0200
committerAlexander Harkness <me@bearbin.net>2014-09-22 21:45:22 +0200
commit5f823fd18dbfc097b45957d05aeb4d04bf5099fd (patch)
tree8fa683aca43dfabd59c7c90e06c2d1f1a4549bed /src/Protocol/Protocol14x.cpp
parentMerge pull request #1446 from cedeel/patch-1 (diff)
parentChanged metadata reading again. (diff)
downloadcuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar.gz
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar.bz2
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar.lz
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar.xz
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.tar.zst
cuberite-5f823fd18dbfc097b45957d05aeb4d04bf5099fd.zip
Diffstat (limited to 'src/Protocol/Protocol14x.cpp')
-rw-r--r--src/Protocol/Protocol14x.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Protocol/Protocol14x.cpp b/src/Protocol/Protocol14x.cpp
index 3b6b6a42a..d33314a2f 100644
--- a/src/Protocol/Protocol14x.cpp
+++ b/src/Protocol/Protocol14x.cpp
@@ -132,12 +132,6 @@ void cProtocol142::SendSoundParticleEffect(int a_EffectID, int a_SrcX, int a_Src
void cProtocol142::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_DoDaylightCycle)
{
- if (!a_DoDaylightCycle)
- {
- // When writing a "-" before the number the client ignores it but it will stop the client-side time expiration.
- a_TimeOfDay = std::min(-a_TimeOfDay, -1LL);
- }
-
cCSLock Lock(m_CSPacket);
WriteByte (PACKET_UPDATE_TIME);
WriteInt64(a_WorldAge);