diff --git a/src/entity/Living.php b/src/entity/Living.php index c4d2515b..981c9d4f 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -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(); }