new autojump

This commit is contained in:
GameHerobrine 2023-12-15 06:17:47 +03:00
parent f7745aa69c
commit f7fed3cd74
4 changed files with 33 additions and 33 deletions

View file

@ -72,23 +72,26 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
return;
}
if($this->closed) return;
parent::update();
}
public function updateEntityMovement(){
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
$this->ai->updateTasks();
}
$this->ai->mobController->rotateTick();
$this->ai->mobController->movementTick();
/*if(self::$entityPushing){
$this->collideHandler();
}*/
$this->collideHandler();
}*/
if($this->onGround){
//if(!$this->hasPath() && $this->pathFinder instanceof ITileNavigator){
// $this->path = $this->pathFinder->navigate(new PathTileXYZ($this->x, $this->y, $this->z, $this->level), new PathTileXYZ($this->x + mt_rand(-10, 10), $this->y + mt_rand(-1, 1), $this->z + mt_rand(-10, 10), $this->level), 10);
//}
//$this->pathFollower->followPath();
}
parent::update();
}
public function sendMoveUpdate(){