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 | |
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 '')
-rw-r--r-- | src/Mobs/Monster.cpp | 2 | ||||
-rw-r--r-- | src/Mobs/Wolf.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 42c7d2899..283ef36e6 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -276,7 +276,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk) { Distance.y = 0; Distance.Normalize(); - Distance *= 3; + Distance *= 5; SetSpeedX(Distance.x); SetSpeedZ(Distance.z); 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); } } |