summaryrefslogtreecommitdiffstats
path: root/src/Protocol
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-12 23:05:02 +0100
committermadmaxoft <github@xoft.cz>2013-12-12 23:05:02 +0100
commitf3c9ea0ed2b99208117e40345cf1e39224831cf6 (patch)
tree849c2bbc45c104c77e4a734e7bc44bcb2ad7d806 /src/Protocol
parentFixed pistons being viable middle block (diff)
downloadcuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar.gz
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar.bz2
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar.lz
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar.xz
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.tar.zst
cuberite-f3c9ea0ed2b99208117e40345cf1e39224831cf6.zip
Diffstat (limited to 'src/Protocol')
-rw-r--r--src/Protocol/Protocol17x.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 75983e9a3..f437c438e 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -1031,8 +1031,6 @@ void cProtocol172::HandlePacket(UInt32 a_PacketType, UInt32 a_RemainingBytes)
// Unknown packet type, report to the client:
m_Client->PacketUnknown(a_PacketType);
- m_ReceivedData.SkipRead(a_RemainingBytes);
- m_ReceivedData.CommitRead();
}
@@ -1045,8 +1043,6 @@ void cProtocol172::HandlePacketStatusPing(UInt32 a_RemainingBytes)
if (a_RemainingBytes != 8)
{
m_Client->PacketError(0x01);
- m_ReceivedData.SkipRead(a_RemainingBytes);
- m_ReceivedData.CommitRead();
return;
}
Int64 Timestamp;