summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-02 11:35:24 +0100
committerMattes D <github@xoft.cz>2014-02-02 11:35:24 +0100
commit6f90b492b8907f31be337583a1cf285e4634ffa8 (patch)
tree579f914722c036497a9f755882ec3163460594ef /src/Mobs/Wolf.cpp
parentMerge pull request #585 from daniel0916/hooks (diff)
parentAdded saving of angry flag. (diff)
downloadcuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar.gz
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar.bz2
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar.lz
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar.xz
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.tar.zst
cuberite-6f90b492b8907f31be337583a1cf285e4634ffa8.zip
Diffstat (limited to 'src/Mobs/Wolf.cpp')
-rw-r--r--src/Mobs/Wolf.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Mobs/Wolf.cpp b/src/Mobs/Wolf.cpp
index c0c7892e3..ff324d073 100644
--- a/src/Mobs/Wolf.cpp
+++ b/src/Mobs/Wolf.cpp
@@ -204,6 +204,7 @@ void cWolf::TickFollowPlayer()
{
if (!IsSitting())
{
+ Callback.OwnerPos.y = FindFirstNonAirBlockPosition(Callback.OwnerPos.x, Callback.OwnerPos.z);
TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
}
}