armor rewrite

This commit is contained in:
GameHerobrine 2023-01-23 17:39:57 +03:00
parent 45b36cb034
commit bae0d4618e
34 changed files with 143 additions and 67 deletions

View file

@ -34,7 +34,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
$this->ai->updateTasks();
}
if($this->onGround){
//if(!$this->hasPath() && $this->pathFinder instanceof ITileNavigator){
//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();