summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 09:32:16 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-02 09:32:16 +0100
commit40b5574144f82e74506032aa840e0df68143602d (patch)
tree7a98d801cd20e5db1785765b16ae8bbbc3285a62 /source
parentFixed crash when client only sends a space in the chat (diff)
downloadcuberite-40b5574144f82e74506032aa840e0df68143602d.tar
cuberite-40b5574144f82e74506032aa840e0df68143602d.tar.gz
cuberite-40b5574144f82e74506032aa840e0df68143602d.tar.bz2
cuberite-40b5574144f82e74506032aa840e0df68143602d.tar.lz
cuberite-40b5574144f82e74506032aa840e0df68143602d.tar.xz
cuberite-40b5574144f82e74506032aa840e0df68143602d.tar.zst
cuberite-40b5574144f82e74506032aa840e0df68143602d.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 76e78083c..a694ea97e 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -967,7 +967,8 @@ void cClientHandle::Tick(float a_Dt)
Send( cPacket_UpdateHealth( (short)m_Player->GetHealth() ) );
//quick bugfix to prevent players from spawning in ground
- m_Player->TeleportTo( cRoot::Get()->GetWorld()->GetSpawnX(), cRoot::Get()->GetWorld()->GetSpawnY()+1, cRoot::Get()->GetWorld()->GetSpawnZ() );
+// m_Player->TeleportTo( cRoot::Get()->GetWorld()->GetPosX(), cRoot::Get()->GetWorld()->GetPosY()+1, cRoot::Get()->GetWorld()->GetPosZ() );
+ m_Player->TeleportTo( m_Player->GetPosX(), m_Player->GetPosY()+1, m_Player->GetPosZ() );
World->UnlockEntities();
}