summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKirill Kirilenko <root@ultracoder.ru>2014-02-01 17:22:12 +0100
committerKirill Kirilenko <root@ultracoder.ru>2014-02-01 17:22:12 +0100
commit0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c (patch)
treecace970a287ad04af9250b64d2a8c2f3f5a996d2 /src
parentAdded saving of collar's color. (diff)
downloadcuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar.gz
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar.bz2
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar.lz
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar.xz
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.tar.zst
cuberite-0d33f2d11d9f9836bfd840a0e83969bbe6e9c49c.zip
Diffstat (limited to '')
-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);
}
}