1
0

Fixed teleport to air, if owner is flying.

This commit is contained in:
Kirill Kirilenko 2014-02-01 20:22:12 +04:00
parent 0259aed8be
commit 0d33f2d11d

View File

@ -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);
}
}