diff options
author | Lane Kolbly <lane@rscheme.org> | 2017-09-02 18:46:57 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2017-09-02 18:46:57 +0200 |
commit | aebfbfb8c8d623ded8d409d29983a5e871a475bc (patch) | |
tree | 7c2d46d7c4dceb1aa11bdd905739a54f3846a167 /src/Protocol/Protocol_1_11.cpp | |
parent | Revert "Replace ItemCallbacks with lambdas (#3948)" (diff) | |
download | cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.gz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.bz2 cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.lz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.xz cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.tar.zst cuberite-aebfbfb8c8d623ded8d409d29983a5e871a475bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol_1_11.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Protocol/Protocol_1_11.cpp b/src/Protocol/Protocol_1_11.cpp index b9b6e9ac3..ba7742493 100644 --- a/src/Protocol/Protocol_1_11.cpp +++ b/src/Protocol/Protocol_1_11.cpp @@ -342,7 +342,7 @@ void cProtocol_1_11_0::SendCollectEntity(const cEntity & a_Entity, const cPlayer { ASSERT(m_State == 3); // In game mode? - cPacketizer Pkt(*this, 0x48); // Collect Item packet + cPacketizer Pkt(*this, GetPacketId(sendCollectEntity)); // Collect Item packet Pkt.WriteVarInt32(a_Entity.GetUniqueID()); Pkt.WriteVarInt32(a_Player.GetUniqueID()); Pkt.WriteVarInt32(static_cast<UInt32>(a_Count)); @@ -356,7 +356,7 @@ void cProtocol_1_11_0::SendHideTitle(void) { ASSERT(m_State == 3); // In game mode? - cPacketizer Pkt(*this, 0x45); // Title packet + cPacketizer Pkt(*this, GetPacketId(sendTitle)); // Title packet Pkt.WriteVarInt32(4); // Hide title } @@ -368,7 +368,7 @@ void cProtocol_1_11_0::SendResetTitle(void) { ASSERT(m_State == 3); // In game mode? - cPacketizer Pkt(*this, 0x45); // Title packet + cPacketizer Pkt(*this, GetPacketId(sendTitle)); // Title packet Pkt.WriteVarInt32(5); // Reset title } @@ -380,7 +380,7 @@ void cProtocol_1_11_0::SendSpawnMob(const cMonster & a_Mob) { ASSERT(m_State == 3); // In game mode? - cPacketizer Pkt(*this, 0x03); // Spawn Mob packet + cPacketizer Pkt(*this, GetPacketId(sendSpawnMob)); // Spawn Mob packet Pkt.WriteVarInt32(a_Mob.GetUniqueID()); // TODO: Bad way to write a UUID, and it's not a true UUID, but this is functional for now. Pkt.WriteBEUInt64(0); |