mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
new autojump
This commit is contained in:
parent
f7745aa69c
commit
f7fed3cd74
4 changed files with 33 additions and 33 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue