This commit is contained in:
GameHerobrine 2023-10-31 12:03:00 +03:00
parent 01bc7e1022
commit dfa8e1c7e4

View file

@ -69,6 +69,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
public function update(){
if(self::$despawnMobs && ++$this->ticksExisted > self::$despawnTimer){
$this->close();
return;
}
if(!$this->dead && Entity::$allowedAI && $this->idleTime <= 0) {
$this->ai->updateTasks();