diff options
author | madmaxoft <github@xoft.cz> | 2013-09-09 18:34:38 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-09-09 18:34:38 +0200 |
commit | becb36d2d12640d02ffe1ca6294c54bf154c9cd3 (patch) | |
tree | 5a88e431265d1e13640b5abd71f9412c060e7963 /source | |
parent | Merge branch 'boats' of git://github.com/tigerw/MCServer. (diff) | |
download | cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar.gz cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar.bz2 cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar.lz cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar.xz cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.tar.zst cuberite-becb36d2d12640d02ffe1ca6294c54bf154c9cd3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Protocol/Protocol125.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Protocol/Protocol125.cpp b/source/Protocol/Protocol125.cpp index 4577e0c16..54bd28c9f 100644 --- a/source/Protocol/Protocol125.cpp +++ b/source/Protocol/Protocol125.cpp @@ -584,7 +584,7 @@ void cProtocol125::SendPlayerListItem(const cPlayer & a_Player, bool a_IsOnline) WriteByte ((unsigned char)PACKET_PLAYER_LIST_ITEM); WriteString(PlayerName); WriteBool (a_IsOnline); - WriteShort (a_Player.GetClientHandle()->GetPing()); + WriteShort (a_IsOnline ? a_Player.GetClientHandle()->GetPing() : 0); Flush(); } |