Fixed teleport to air, if owner is flying.
This commit is contained in:
parent
0259aed8be
commit
0d33f2d11d
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user