summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2016-06-02 00:46:24 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2016-06-02 00:46:24 +0200
commita5ec2d8ca2b319675091a6b93716ec7e0a688422 (patch)
treeb7ec1016b27ed4c358c47251417983413cef878c /src/Entities/Player.cpp
parentLuaState: Inter-plugin calls now support simple tables. (#3220) (diff)
downloadcuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar.gz
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar.bz2
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar.lz
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar.xz
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.tar.zst
cuberite-a5ec2d8ca2b319675091a6b93716ec7e0a688422.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Player.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Entities/Player.cpp b/src/Entities/Player.cpp
index a5868b528..e4c0fdaa5 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1439,7 +1439,7 @@ void cPlayer::TeleportToCoords(double a_PosX, double a_PosY, double a_PosZ)
{
SetPosition(a_PosX, a_PosY, a_PosZ);
FreezeInternal(GetPosition(), false);
- m_LastGroundHeight = static_cast<float>(a_PosY);
+ m_LastGroundHeight = a_PosY;
m_bIsTeleporting = true;
m_World->BroadcastTeleportEntity(*this, GetClientHandle());