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/Protocol17x.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/Protocol17x.cpp')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index 7c526d103..96e1cbad9 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -983,11 +983,11 @@ void cProtocol172::SendRemoveEntityEffect(const cEntity & a_Entity, int a_Effect -void cProtocol172::SendRespawn(void) +void cProtocol172::SendRespawn(const cWorld & a_World) { cPacketizer Pkt(*this, 0x07); // Respawn packet cPlayer * Player = m_Client->GetPlayer(); - Pkt.WriteInt(Player->GetWorld()->GetDimension()); + Pkt.WriteInt((int)a_World.GetDimension()); Pkt.WriteByte(2); // TODO: Difficulty (set to Normal) Pkt.WriteByte((Byte)Player->GetEffectiveGameMode()); Pkt.WriteString("default"); |