1
0

Fixed player respawning crashing the server.

( http://forum.mc-server.org/showthread.php?tid=520&pid=4789#pid4789 )

git-svn-id: http://mc-server.googlecode.com/svn/trunk@935 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-10-06 17:19:56 +00:00
parent 04c43ac8f5
commit f5c3cba6ff

View File

@ -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;
}