This commit is contained in:
GameHerobrine 2023-10-31 14:01:52 +03:00
parent dfa8e1c7e4
commit 6e8d7bead3

View file

@ -71,6 +71,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
$this->close();
return;
}
if($this->closed) return;
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
$this->ai->updateTasks();
}