summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-30 13:52:51 +0200
committermadmaxoft <github@xoft.cz>2014-07-30 13:56:30 +0200
commit17a94b16ea6207fd5f38fbd309b4db0d92de0d31 (patch)
tree0109cd55e8cfa6058255d2fa82dfaa0d3c7e4bd2 /src/Protocol/Protocol17x.cpp
parentExported cMojangAPI to Lua. (diff)
downloadcuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar.gz
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar.bz2
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar.lz
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar.xz
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.tar.zst
cuberite-17a94b16ea6207fd5f38fbd309b4db0d92de0d31.zip
Diffstat (limited to 'src/Protocol/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index dadf82716..73aba167d 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -680,7 +680,7 @@ void cProtocol172::SendLoginSuccess(void)
{
cPacketizer Pkt(*this, 0x02); // Login success packet
- Pkt.WriteString(m_Client->GetUUID());
+ Pkt.WriteString(cMojangAPI::MakeUUIDDashed(m_Client->GetUUID()));
Pkt.WriteString(m_Client->GetUsername());
}
@@ -941,7 +941,7 @@ void cProtocol172::SendPlayerSpawn(const cPlayer & a_Player)
// Called to spawn another player for the client
cPacketizer Pkt(*this, 0x0c); // Spawn Player packet
Pkt.WriteVarInt(a_Player.GetUniqueID());
- Pkt.WriteString(a_Player.GetClientHandle()->GetUUID());
+ Pkt.WriteString(cMojangAPI::MakeUUIDDashed(a_Player.GetClientHandle()->GetUUID()));
Pkt.WriteString(a_Player.GetName());
Pkt.WriteFPInt(a_Player.GetPosX());
Pkt.WriteFPInt(a_Player.GetPosY());
@@ -3014,7 +3014,7 @@ void cProtocol176::SendPlayerSpawn(const cPlayer & a_Player)
// Called to spawn another player for the client
cPacketizer Pkt(*this, 0x0c); // Spawn Player packet
Pkt.WriteVarInt(a_Player.GetUniqueID());
- Pkt.WriteString(a_Player.GetClientHandle()->GetUUID());
+ Pkt.WriteString(cMojangAPI::MakeUUIDDashed(a_Player.GetClientHandle()->GetUUID()));
Pkt.WriteString(a_Player.GetName());
const Json::Value & Properties = m_Client->GetProperties();