From 6e8d7bead3a38e1118b6da354e7bee81a6f0a984 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 31 Oct 2023 14:01:52 +0300 Subject: [PATCH] fix2 --- src/entity/Living.php | 1 + 1 file changed, 1 insertion(+) 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(); }