summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol14x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-08 11:35:21 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-08 11:35:21 +0200
commit10a30a03e38116fe084138662bd59147331dd883 (patch)
tree0f992fcb2d4e32a0eebc7fe196388af8b9262cfa /src/Protocol/Protocol14x.cpp
parentImplemented packet compression. (diff)
downloadcuberite-10a30a03e38116fe084138662bd59147331dd883.tar
cuberite-10a30a03e38116fe084138662bd59147331dd883.tar.gz
cuberite-10a30a03e38116fe084138662bd59147331dd883.tar.bz2
cuberite-10a30a03e38116fe084138662bd59147331dd883.tar.lz
cuberite-10a30a03e38116fe084138662bd59147331dd883.tar.xz
cuberite-10a30a03e38116fe084138662bd59147331dd883.tar.zst
cuberite-10a30a03e38116fe084138662bd59147331dd883.zip
Diffstat (limited to 'src/Protocol/Protocol14x.cpp')
-rw-r--r--src/Protocol/Protocol14x.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Protocol/Protocol14x.cpp b/src/Protocol/Protocol14x.cpp
index 3b6b6a42a..2d737acb4 100644
--- a/src/Protocol/Protocol14x.cpp
+++ b/src/Protocol/Protocol14x.cpp
@@ -23,6 +23,7 @@ Implements the 1.4.x protocol classes representing these protocols:
#include "../UI/Window.h"
#include "../Entities/Pickup.h"
#include "../Entities/FallingBlock.h"
+#include "ProtocolRecognizer.h"
#ifdef _MSC_VER
#pragma warning(push)
@@ -72,6 +73,7 @@ enum
cProtocol142::cProtocol142(cClientHandle * a_Client) :
super(a_Client)
{
+ m_ProtocolVersion = cProtocolRecognizer::PROTO_VERSION_1_4_2;
}
@@ -132,12 +134,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);
@@ -156,6 +152,7 @@ void cProtocol142::SendTimeUpdate(Int64 a_WorldAge, Int64 a_TimeOfDay, bool a_Do
cProtocol146::cProtocol146(cClientHandle * a_Client) :
super(a_Client)
{
+ m_ProtocolVersion = cProtocolRecognizer::PROTO_VERSION_1_4_6;
}