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:
parent
04c43ac8f5
commit
f5c3cba6ff
@ -522,7 +522,14 @@ int cProtocol132::ParseHandshake(void)
|
|||||||
int cProtocol132::ParseClientStatuses(void)
|
int cProtocol132::ParseClientStatuses(void)
|
||||||
{
|
{
|
||||||
HANDLE_PACKET_READ(ReadByte, byte, Status);
|
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;
|
return PARSE_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user