diff options
author | Mattes D <github@xoft.cz> | 2014-02-02 11:35:24 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-02-02 11:35:24 +0100 |
commit | 6f90b492b8907f31be337583a1cf285e4634ffa8 (patch) | |
tree | 579f914722c036497a9f755882ec3163460594ef /src/Mobs/Wolf.cpp | |
parent | Merge pull request #585 from daniel0916/hooks (diff) | |
parent | Added saving of angry flag. (diff) | |
download | cuberite-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.cpp | 1 |
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); } } |