1
0
Fork 0

1.8: Added difficulty sending

This commit is contained in:
Howaner 2014-09-12 02:00:28 +02:00
parent 8151c79a87
commit eb19eff5ac
1 changed files with 6 additions and 0 deletions

View File

@ -665,6 +665,12 @@ void cProtocol180::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
cPacketizer Pkt(*this, 0x05); // Spawn Position packet
Pkt.WritePosition(a_World.GetSpawnX(), a_World.GetSpawnY(), a_World.GetSpawnZ());
}
// Send the server difficulty:
{
cPacketizer Pkt(*this, 0x41);
Pkt.WriteChar(1);
}
// Send player abilities:
SendPlayerAbilities();