diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-09-26 17:37:19 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-09-26 17:37:19 +0200 |
commit | d83d6456e8aedf84dcda89eb29d20d8ba834748e (patch) | |
tree | 0f1b4b04adc925c425df1728e6efc8a4ccbfbfc8 /src/Protocol/Protocol125.cpp | |
parent | Added type checking to map loading. (diff) | |
download | cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar.gz cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar.bz2 cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar.lz cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar.xz cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.tar.zst cuberite-d83d6456e8aedf84dcda89eb29d20d8ba834748e.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 ba4cfa7ef..8a5f26c8b 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); } |