diff options
author | Mattes D <github@xoft.cz> | 2014-09-26 23:01:22 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-09-26 23:01:22 +0200 |
commit | 305778f22f00384a7e4228990971e50240040acf (patch) | |
tree | d485462b555c767a13dec9ad0c35d20597546490 /src/Protocol/Protocol125.cpp | |
parent | Fixed UNUSED macro so that it doesn't require type knowledge. (diff) | |
parent | Merge branch 'master' into Fixes (diff) | |
download | cuberite-305778f22f00384a7e4228990971e50240040acf.tar cuberite-305778f22f00384a7e4228990971e50240040acf.tar.gz cuberite-305778f22f00384a7e4228990971e50240040acf.tar.bz2 cuberite-305778f22f00384a7e4228990971e50240040acf.tar.lz cuberite-305778f22f00384a7e4228990971e50240040acf.tar.xz cuberite-305778f22f00384a7e4228990971e50240040acf.tar.zst cuberite-305778f22f00384a7e4228990971e50240040acf.zip |
Diffstat (limited to 'src/Protocol/Protocol125.cpp')
-rw-r--r-- | src/Protocol/Protocol125.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp index 385e6a623..369a35e18 100644 --- a/src/Protocol/Protocol125.cpp +++ b/src/Protocol/Protocol125.cpp @@ -767,25 +767,11 @@ void cProtocol125::SendPlayerListUpdatePing(const cPlayer & a_Player) -void cProtocol125::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_OldListName) +void cProtocol125::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_CustomName) { - if (a_OldListName == a_Player.GetPlayerListName()) - { - return; - } - - cCSLock Lock(m_CSPacket); - - // Remove the old name from the tablist: - { - WriteByte (PACKET_PLAYER_LIST_ITEM); - WriteString(a_OldListName); - WriteBool (false); - WriteShort (0); - Flush(); - } - - SendPlayerListAddPlayer(a_Player); + // Not implemented in this protocol version + UNUSED(a_Player); + UNUSED(a_CustomName); } |