knockback tweaks

This commit is contained in:
GameHerobrine 2023-01-23 00:45:01 +03:00
parent b8589c9dd4
commit b6ce6e459c
2 changed files with 12 additions and 5 deletions

View file

@ -34,8 +34,11 @@ class MobController
}
}
}
if($this->entity->knockbackTime <= 0){
$this->entity->moveEntityWithOffset($ox, $oy, $oz);
}
$this->entity->moveEntityWithOffset($ox, $oy, $oz);
$this->faceEntity($this->entity->add($ox, $oy, $oz));
return true;
}