summaryrefslogtreecommitdiffstats
path: root/src/Entities/Pawn.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-05-03 09:48:39 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-05-03 09:48:39 +0200
commitb3d4e0fca665502b727f0088a3a20aac1b9ad073 (patch)
tree89e7bd48177595a5fd69ff411268777444eb351d /src/Entities/Pawn.cpp
parentFix crash on world travel (#3180) (diff)
downloadcuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar.gz
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar.bz2
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar.lz
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar.xz
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.tar.zst
cuberite-b3d4e0fca665502b727f0088a3a20aac1b9ad073.zip
Diffstat (limited to '')
-rw-r--r--src/Entities/Pawn.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Entities/Pawn.cpp b/src/Entities/Pawn.cpp
index 3dea74851..69c2db5e7 100644
--- a/src/Entities/Pawn.cpp
+++ b/src/Entities/Pawn.cpp
@@ -250,6 +250,24 @@ void cPawn::TargetingMe(cMonster * a_Monster)
+void cPawn::SetPosition(double a_PosX, double a_PosY, double a_PosZ)
+{
+ SetPosition({a_PosX, a_PosY, a_PosZ});
+}
+
+
+
+
+
+void cPawn::SetPosition(const Vector3d & a_Position)
+{
+ super::SetPosition(a_Position);
+ m_LastGroundHeight = a_Position.y; // Prevent fall damage on teleport
+}
+
+
+
+
void cPawn::HandleFalling(void)
{