summaryrefslogtreecommitdiffstats
path: root/source/Protocol
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 19:19:56 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-10-06 19:19:56 +0200
commitf5c3cba6ffc708a9f204967c3c8118f16b45d47a (patch)
tree98ac91656ff805ca1b9026752c821b03307a444b /source/Protocol
parentNew example plugin using the BlockArea functionality. (diff)
downloadcuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar.gz
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar.bz2
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar.lz
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar.xz
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.tar.zst
cuberite-f5c3cba6ffc708a9f204967c3c8118f16b45d47a.zip
Diffstat (limited to 'source/Protocol')
-rw-r--r--source/Protocol/Protocol132.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp
index f356b611a..d46a16160 100644
--- a/source/Protocol/Protocol132.cpp
+++ b/source/Protocol/Protocol132.cpp
@@ -522,7 +522,14 @@ int cProtocol132::ParseHandshake(void)
int cProtocol132::ParseClientStatuses(void)
{
HANDLE_PACKET_READ(ReadByte, byte, Status);
- m_Client->HandleLogin(39, m_Username);
+ if ((Status & 1) == 0)
+ {
+ m_Client->HandleLogin(39, m_Username);
+ }
+ else
+ {
+ m_Client->HandleRespawn();
+ }
return PARSE_OK;
}