Fixed bug where wolfs would teleport while they were sitting.
This commit is contained in:
parent
a533386144
commit
4c780e7b44
@ -202,7 +202,10 @@ void cWolf::TickFollowPlayer()
|
|||||||
double Distance = (Callback.OwnerPos - GetPosition()).Length();
|
double Distance = (Callback.OwnerPos - GetPosition()).Length();
|
||||||
if (Distance > 30)
|
if (Distance > 30)
|
||||||
{
|
{
|
||||||
TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
|
if (!IsSitting())
|
||||||
|
{
|
||||||
|
TeleportToCoords(Callback.OwnerPos.x, Callback.OwnerPos.y, Callback.OwnerPos.z);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user