summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
authoradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 23:27:09 +0100
committeradmin@omencraft.com <admin@omencraft.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 23:27:09 +0100
commitbf2806dcb8ee8012fa02c6782382a1edafa3cc14 (patch)
treeb23e7e2ca87088d842435c20d1f4afcf4cb23a21 /source/cClientHandle.cpp
parentAccidentally removed a line of code (diff)
downloadcuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.gz
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.bz2
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.lz
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.xz
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.tar.zst
cuberite-bf2806dcb8ee8012fa02c6782382a1edafa3cc14.zip
Diffstat (limited to 'source/cClientHandle.cpp')
-rw-r--r--source/cClientHandle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index dda2ce2a0..76e78083c 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -965,6 +965,10 @@ void cClientHandle::Tick(float a_Dt)
// Send health
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() );
+
World->UnlockEntities();
}
}