summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 21:41:58 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-06 21:41:58 +0100
commitec226e00ab8d7808af92a90bc52aa54611561582 (patch)
tree1847507934f433437350db146874d3f5f782da9b /src
parentAdded pickup invalid item check (diff)
downloadcuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar.gz
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar.bz2
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar.lz
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar.xz
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.tar.zst
cuberite-ec226e00ab8d7808af92a90bc52aa54611561582.zip
Diffstat (limited to 'src')
-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 90d250eaa..a0cf24325 100644
--- a/src/Entities/Player.cpp
+++ b/src/Entities/Player.cpp
@@ -1328,7 +1328,7 @@ void cPlayer::TossItem(
double vX = 0, vY = 0, vZ = 0;
EulerToVector(-GetRotation(), GetPitch(), vZ, vX, vY);
vY = -vY * 2 + 1.f;
- m_World->SpawnItemPickups(Drops, GetPosX(), GetPosY() + 1.6f, GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because created by player
+ m_World->SpawnItemPickups(Drops, GetPosX(), GetEyeHeight(), GetPosZ(), vX * 3, vY * 3, vZ * 3, true); // 'true' because created by player
}