summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol_1_10.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2019-09-09 18:22:37 +0200
committerMattes D <github@xoft.cz>2019-09-10 09:45:28 +0200
commit2c804dd34a58ff9702bd1ab2cab30f6a61503638 (patch)
tree16b3052c65f65231898205d670c52660f79b661f /src/Protocol/Protocol_1_10.cpp
parentChunkGenerator: Changed to use cChunkCoords. (diff)
downloadcuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.gz
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.bz2
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.lz
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.xz
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.zst
cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.zip
Diffstat (limited to 'src/Protocol/Protocol_1_10.cpp')
-rw-r--r--src/Protocol/Protocol_1_10.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/Protocol_1_10.cpp b/src/Protocol/Protocol_1_10.cpp
index 8f8ea137c..38abdb53b 100644
--- a/src/Protocol/Protocol_1_10.cpp
+++ b/src/Protocol/Protocol_1_10.cpp
@@ -292,7 +292,7 @@ namespace Metadata
cProtocol_1_10_0::cProtocol_1_10_0(cClientHandle * a_Client, const AString & a_ServerAddress, UInt16 a_ServerPort, UInt32 a_State) :
- super(a_Client, a_ServerAddress, a_ServerPort, a_State)
+ Super(a_Client, a_ServerAddress, a_ServerPort, a_State)
{
}
@@ -304,7 +304,7 @@ void cProtocol_1_10_0::SendSoundEffect(const AString & a_SoundName, double a_X,
{
ASSERT(m_State == 3); // In game mode?
- cPacketizer Pkt(*this, GetPacketId(sendSoundEffect)); // Named sound effect packet
+ cPacketizer Pkt(*this, pktSoundEffect);
Pkt.WriteString(a_SoundName);
Pkt.WriteVarInt32(0); // Master sound category (may want to be changed to a parameter later)
Pkt.WriteBEInt32(FloorC(a_X * 8.0));
@@ -356,7 +356,7 @@ void cProtocol_1_10_0::HandlePacketStatusRequest(cByteBuffer & a_ByteBuffer)
Json::FastWriter Writer;
AString Response = Writer.write(ResponseValue);
- cPacketizer Pkt(*this, 0x00); // Response packet
+ cPacketizer Pkt(*this, pktStatusResponse);
Pkt.WriteString(Response);
}