1
0
Fork 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
1 changed files with 1 additions and 0 deletions

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