1.8: Added difficulty sending
This commit is contained in:
parent
8151c79a87
commit
eb19eff5ac
@ -665,6 +665,12 @@ void cProtocol180::SendLogin(const cPlayer & a_Player, const cWorld & a_World)
|
|||||||
cPacketizer Pkt(*this, 0x05); // Spawn Position packet
|
cPacketizer Pkt(*this, 0x05); // Spawn Position packet
|
||||||
Pkt.WritePosition(a_World.GetSpawnX(), a_World.GetSpawnY(), a_World.GetSpawnZ());
|
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:
|
// Send player abilities:
|
||||||
SendPlayerAbilities();
|
SendPlayerAbilities();
|
||||||
|
Loading…
Reference in New Issue
Block a user