summaryrefslogtreecommitdiffstats
path: root/src/Protocol/Protocol17x.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-26 17:37:19 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-26 17:37:19 +0200
commitd83d6456e8aedf84dcda89eb29d20d8ba834748e (patch)
tree0f1b4b04adc925c425df1728e6efc8a4ccbfbfc8 /src/Protocol/Protocol17x.cpp
parentAdded type checking to map loading. (diff)
downloadcuberite-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/Protocol17x.cpp')
-rw-r--r--src/Protocol/Protocol17x.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp
index 73d2a74f9..ce4732471 100644
--- a/src/Protocol/Protocol17x.cpp
+++ b/src/Protocol/Protocol17x.cpp
@@ -838,23 +838,11 @@ void cProtocol172::SendPlayerListUpdatePing(const cPlayer & a_Player)
-void cProtocol172::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_OldListName)
+void cProtocol172::SendPlayerListUpdateDisplayName(const cPlayer & a_Player, const AString & a_CustomName)
{
- ASSERT(m_State == 3); // In game mode?
- if (a_OldListName == a_Player.GetPlayerListName())
- {
- return;
- }
-
- // Remove the old name from the tablist:
- {
- cPacketizer Pkt(*this, 0x38);
- Pkt.WriteString(a_OldListName);
- Pkt.WriteBool(false);
- Pkt.WriteShort(0);
- }
-
- SendPlayerListAddPlayer(a_Player);
+ // Not implemented in this protocol version
+ UNUSED(a_Player);
+ UNUSED(a_CustomName);
}