mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
small typo fix
This commit is contained in:
parent
916a06c161
commit
54bdb8a244
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ abstract class Creature extends Living{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(){
|
public function update(){
|
||||||
i/*f($this->path === false || count($this->path) <= 0){
|
/*if($this->path === false || count($this->path) <= 0){
|
||||||
$this->path = $this->pathFinder->findPath(MinecraftNode::fromArray([$this->x, $this->y, $this->z]), new MinecraftNode($this->x + mt_rand(-7, 7), $this->y, $this->z + mt_rand(-7, 7)));
|
$this->path = $this->pathFinder->findPath(MinecraftNode::fromArray([$this->x, $this->y, $this->z]), new MinecraftNode($this->x + mt_rand(-7, 7), $this->y, $this->z + mt_rand(-7, 7)));
|
||||||
}
|
}
|
||||||
$state = $this->pathNavigator->followPath($this->path);
|
$state = $this->pathNavigator->followPath($this->path);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue