diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-31 23:28:51 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-05-31 23:28:51 +0200 |
commit | 8bff3e5af220070ecc789ef551c0b8428b8953ef (patch) | |
tree | 4e0b04d1595f8441a9ca5f319ea94244143294db /src/Protocol/Protocol125.cpp | |
parent | Very minor code changes (diff) | |
download | cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar.gz cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar.bz2 cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar.lz cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar.xz cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.tar.zst cuberite-8bff3e5af220070ecc789ef551c0b8428b8953ef.zip |
Diffstat (limited to 'src/Protocol/Protocol125.cpp')
-rw-r--r-- | src/Protocol/Protocol125.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol125.cpp b/src/Protocol/Protocol125.cpp index f3bdae3ac..873295f62 100644 --- a/src/Protocol/Protocol125.cpp +++ b/src/Protocol/Protocol125.cpp @@ -831,12 +831,12 @@ void cProtocol125::SendRemoveEntityEffect(const cEntity & a_Entity, int a_Effect -void cProtocol125::SendRespawn(void) +void cProtocol125::SendRespawn(const cWorld & a_World) { cCSLock Lock(m_CSPacket); cPlayer * Player = m_Client->GetPlayer(); WriteByte (PACKET_RESPAWN); - WriteInt ((int)(Player->GetWorld()->GetDimension())); + WriteInt ((int)(a_World.GetDimension())); WriteByte (2); // TODO: Difficulty; 2 = Normal WriteChar ((char)Player->GetGameMode()); WriteShort (256); // Current world height |