summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-09 18:17:04 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-09 18:17:04 +0200
commite9b9f1861c1a5f8615d35f181f6353eecef9c1f3 (patch)
tree9a9f09ffea3687af3d3d816e3d9490d8404f8b39
parentKeep players from taking damage when teleporting. (Hopefully). (diff)
downloadcuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar.gz
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar.bz2
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar.lz
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar.xz
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.tar.zst
cuberite-e9b9f1861c1a5f8615d35f181f6353eecef9c1f3.zip
-rw-r--r--source/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Player.cpp b/source/Player.cpp
index 584a814b2..b7f53daeb 100644
--- a/source/Player.cpp
+++ b/source/Player.cpp
@@ -765,7 +765,7 @@ void cPlayer::SendMessage(const AString & a_Message)
void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
- m_LastGroundHeight = (float)a_PosY();
+ m_LastGroundHeight = (float)a_PosY;
SetPosition( a_PosX, a_PosY, a_PosZ );
m_World->BroadcastTeleportEntity(*this, GetClientHandle());