From dfa8e1c7e4861eed5ac5ae8d56db1b1ea07a2ed3 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 31 Oct 2023 12:03:00 +0300 Subject: [PATCH] fix --- src/entity/Living.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entity/Living.php b/src/entity/Living.php index 7298810f..c4d2515b 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -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();