diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 19:19:56 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-10-06 19:19:56 +0200 |
commit | f5c3cba6ffc708a9f204967c3c8118f16b45d47a (patch) | |
tree | 98ac91656ff805ca1b9026752c821b03307a444b | |
parent | New example plugin using the BlockArea functionality. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/Protocol/Protocol132.cpp | 9 |
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;
}
|